@@ -205,13 +205,15 @@ (let ((key-string (conc (get-host-name) "-" (current-process-id)))) (with-output-to-file fname (lambda () (print key-string))) (thread-sleep! 0.25) - (with-input-from-file fname - (lambda () - (equal? key-string (read-line))))))) + (if (file-exists? fname) + (with-input-from-file fname + (lambda () + (equal? key-string (read-line)))) + #f)))) (define (common:simple-file-release-lock fname) (delete-file* fname)) ;;====================================================================== @@ -269,13 +271,13 @@ ;;====================================================================== (define (common:legacy-sync-recommended) (or (args:get-arg "-runtests") (args:get-arg "-server") - (args:get-arg "-set-run-status") + ;; (args:get-arg "-set-run-status") (args:get-arg "-remove-runs") - (args:get-arg "-get-run-status") + ;; (args:get-arg "-get-run-status") )) (define (common:legacy-sync-required) (configf:lookup *configdat* "setup" "megatest-db")) @@ -289,11 +291,12 @@ (if (and no-hurry (debug:debug-mode 18)) (rmt:print-db-stats)) (let ((th1 (make-thread (lambda () ;; thread for cleaning up, give it five seconds (let ((run-ids (hash-table-keys *db-local-sync*))) (if (and (not (null? run-ids)) - (configf:lookup *configdat* "setup" "megatest-db")) + (or (common:legacy-sync-recommended) + (configf:lookup *configdat* "setup" "megatest-db"))) (if no-hurry (db:multi-db-sync run-ids 'new2old)))) (if *dbstruct-db* (db:close-all *dbstruct-db*)) (if *inmemdb* (db:close-all *inmemdb*)) (if (and *megatest-db* (sqlite3:database? *megatest-db*))