Overview
Comment: | Added ability to pass in existing udata to ulex setup |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | v1.70-captain-ulex | v1.70-defunct-try |
Files: | files | file ages | folders |
SHA1: |
3d501185ded5b2f511ab4661eac6cdcf |
User & Date: | matt on 2020-02-01 04:39:19 |
Other Links: | branch diff | manifest | tags |
Context
2020-02-01
| ||
04:39 | Added ability to pass in existing udata to ulex setup Leaf check-in: 3d501185de user: matt tags: v1.70-captain-ulex, v1.70-defunct-try | |
2020-01-29
| ||
22:38 | Added some instrumentation check-in: e99d345eb0 user: matt tags: v1.70-captain-ulex, v1.70-defunct-try | |
Changes
Modified TODO from [e0a2376de1] to [825d3b6272].
︙ | |||
14 15 16 17 18 19 20 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | - - + + | # # You should have received a copy of the GNU General Public License # along with Megatest. If not, see <http://www.gnu.org/licenses/>. TODO ==== |
︙ |
Modified ulex/ulex.scm from [8636c80a0f] to [94ed3a5317].
︙ | |||
49 50 51 52 53 54 55 | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - - + + | ;; This is the basic setup command. Must always be ;; called before connecting to a db using connect. ;; ;; find or become the captain ;; setup and return a ulex object ;; |
︙ | |||
106 107 108 109 110 111 112 | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | - + + | (msg (string-intersperse dbs " ")) (res (send udata host-port 'ping cookie msg retval: #t)) (delta (- (current-milliseconds) start))) (values (equal? res cookie) delta))) ;; returns: success pingtime ;; |
︙ | |||
128 129 130 131 132 133 134 | 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | - + + | (define (get-db-owner udata dbname dbtype) (let* ((host-port (udat-captain-host-port udata))) (if host-port (let* ((cookie (make-cookie udata)) (msg #f) ;; (conc dbname " " dbtype)) (params `(,dbname ,dbtype)) |
︙ | |||
456 457 458 459 460 461 462 | 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 | - + + - + + + - + - + + - + + | ;; send structured data to recipient ;; ;; NOTE: qrykey is what was called the "cookie" previously ;; ;; retval tells send to expect and wait for return data (one line) and return it or time out ;; this is for ping where we don't want to necessarily have set up our own server yet. ;; |
︙ |