Overview
Comment: | basics for main.db working |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.6584-ck5 |
Files: | files | file ages | folders |
SHA1: |
a80b708d01fbf6a83ba10df045829a77 |
User & Date: | matt on 2021-04-29 22:37:59 |
Other Links: | branch diff | manifest | tags |
Context
2021-05-01
| ||
12:10 | beginnings of basic client check-in: 4ab7adb0ad user: matt tags: v1.6584-ck5 | |
2021-04-29
| ||
22:37 | basics for main.db working check-in: a80b708d01 user: matt tags: v1.6584-ck5 | |
21:58 | wip check-in: f3260cf6bc user: matt tags: v1.6584-ck5 | |
Changes
Modified dbmod.scm from [21e8eceb8c] to [8fd2471d40].
︙ | |||
240 241 242 243 244 245 246 | 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | + + + + + + + - + - + | ;; setting/getting a lock on the db for only one server per db ;; ;; NOTE: ;; These operate directly on the disk file, NOT on the inmemory db ;; The lockname is the filename (can have many to one, run-id to fname ;;====================================================================== ;; only use for main.db - need to re-write some of this :( ;; (define (db:get-main-lock dbfile) (db:with-lock-db dbfile (lambda (dbh dbfile) (db:get-iam-server-lock dbh dbfile)))) |
︙ |
Modified http-transportmod.scm from [ce6e1560b9] to [c6036c9806].
︙ | |||
448 449 450 451 452 453 454 | 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | - - - - - - - - | (server-dat (vector iface port api-uri api-url api-req (current-seconds) server-id))) server-dat)) ;;====================================================================== ;; NEW SERVER METHOD ;;====================================================================== |
︙ | |||
630 631 632 633 634 635 636 | 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 | - + | (let* ((all-pkts (get-all-server-pkts pkts-dir *srvpktspec*)) (viables (get-viable-servers all-pkts db-file)) (best-srv (get-best-candidate viables db-file)) (best-srv-key (if best-srv (alist-ref 'servkey best-srv) #f))) (debug:print 0 *default-log-port* "best-srv-key: "best-srv-key", server-key: "server-key) ;; am I the best-srv, compare server-keys to know (if (equal? best-srv-key server-key) |
︙ |
Modified rmtmod.scm from [b48d720a5c] to [681d0db458].
︙ | |||
1777 1778 1779 1780 1781 1782 1783 | 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 | - - - + + + | (dbfile (servdat-dbfile *server-info*))) (debug:print-info 0 *default-log-port* "removing pkt "pkt-file) (delete-file* pkt-file) (if (and dbfile (string-match ".*/main.db$" dbfile)) (begin (debug:print-info 0 *default-log-port* "Releasing lock for "dbfile) |
︙ |