Overview
Comment: | fixed db:get-changed-run-ids, used it in db:get-changed-record-ids |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.70 |
Files: | files | file ages | folders |
SHA1: |
8f6bc664a742803a33371ee25db9972c |
User & Date: | mmgraham on 2022-08-03 12:30:36 |
Other Links: | branch diff | manifest | tags |
Context
2022-08-05
| ||
17:24 | Updated megatest version to 1.7005 check-in: ed7d08c791 user: mmgraham tags: v1.70, v1.7005 | |
2022-08-03
| ||
12:30 | fixed db:get-changed-run-ids, used it in db:get-changed-record-ids check-in: 8f6bc664a7 user: mmgraham tags: v1.70 | |
2022-08-02
| ||
10:59 | Merged fork check-in: abb8b3c79e user: matt tags: v1.70 | |
Changes
Modified db.scm from [9bee706896] to [db8f47231c].
︙ | |||
1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 | 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 | + + - + | qrystr ))) (debug:print-info 11 *default-log-port* "db:get-runs END qrystr: " qrystr " target: " target " offset: " offset " limit: " count) res)) ;; TODO: Switch this to use max(update_time) from each run db? Then if using a server there is no disk traffic (using inmem db) ;; ;; NOTE: This DOESN'T (necessarily) get the real run ids, but the number of the <number>.db!! (define (db:get-changed-run-ids since-time) (let* ((dbdir (db:dbfile-path)) ;; (configf:lookup *configdat* "setup" "dbdir")) (alldbs (glob (conc dbdir "/.megatest/[0-9]*.db"))) (changed (filter (lambda (dbfile) (> (file-modification-time dbfile) since-time)) alldbs))) (delete-duplicates (map (lambda (dbfile) |
︙ | |||
4421 4422 4423 4424 4425 4426 4427 | 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 | - + + + + + + + + + + + + + + - + - + - + - + | ;; (define (db:get-changed-record-ids dbstruct since-time) ;; no transaction, allow the db to be accessed between the big queries (let* ((backcons (lambda (lst item)(cons item lst))) (all_tests '()) (all_test_steps '()) (all_test_data '()) |
︙ |