Megatest

Check-in [234608b6ff]
Login
Overview
Comment:removed some debug console prints
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.65-choosesync
Files: files | file ages | folders
SHA1: 234608b6ff336c17a62e728fa8940e81393ef2d9
User & Date: bjbarcla on 2019-06-14 15:16:27
Other Links: branch diff | manifest | tags
Context
2019-06-18
17:09
Merged in choosesync branch check-in: f3be772e6c user: mrwellan tags: v1.65
2019-06-14
15:16
removed some debug console prints Closed-Leaf check-in: 234608b6ff user: bjbarcla tags: v1.65-choosesync
12:19
ensured nfs_mode and tmp_mode execute on each dbopen check-in: 56f4d2f160 user: bjbarcla tags: v1.65-choosesync
Changes

Modified common.scm from [9c0e4e970f] to [4de50f0bf6].

935
936
937
938
939
940
941
942


943
944
945
946
947
948
949
935
936
937
938
939
940
941

942
943
944
945
946
947
948
949
950







-
+
+







                 ((equal? syncer "brute-force-sync")
                  (server:writable-watchdog-bruteforce dbstruct))
                 ((equal? syncer "delta-sync")
                  (server:writable-watchdog-deltasync dbstruct))
                 (else
                  (debug:print-error 0 *default-log-port* "Unknown server/sync-method specified ("syncer") - valid values are brute-force-sync and delta-sync.")
                  (exit 1)))
                (debug:print 1 *default-log-port* "INFO: ["(common:human-time)"] Syncer started (method="syncer")"))))
                ;;(debug:print 1 *default-log-port* "INFO: ["(common:human-time)"] Syncer started (method="syncer")")
                )))
	    (debug:print-info 13 *default-log-port* "watchdog done."))
	  (debug:print-info 13 *default-log-port* "no need for watchdog on non-homehost"))))


(define (std-exit-procedure)
  ;;(common:telemetry-log-close)
  (on-exit (lambda () 0))

Modified db.scm from [a78084539b] to [8e016daa09].

228
229
230
231
232
233
234
235

236
237
238
239
240
241

242
243
244
245
246
247
248
228
229
230
231
232
233
234

235
236
237
238
239
240

241
242
243
244
245
246
247
248







-
+





-
+







           (if (not readyexists)
               (common:simple-file-lock-and-wait lockfname))
           (let ((db      (sqlite3:open-database fname)))
             (sqlite3:set-busy-handler! db (make-busy-timeout 136000))
             (sqlite3:execute db "PRAGMA synchronous = 0;")
             (if (and (configf:lookup *configdat* "setup" "tmp_mode") (string-match "^/tmp/.*" fname))
                 (begin
                   (print "DEBUG: Setting tmp_mode for " fname) 
                   ;;(print "DEBUG: Setting tmp_mode for " fname) 
                   (sqlite3:execute db (configf:lookup *configdat* "setup" "tmp_mode"))
                   )
                 )  
             (if (and (configf:lookup *configdat* "setup" "nfs_mode") (not (string-match "^/tmp/.*" fname)))
                 (begin
                   (print "DEBUG: Setting nfs_mode for " fname)
                   ;;(print "DEBUG: Setting nfs_mode for " fname)
                   (sqlite3:execute db (configf:lookup *configdat* "setup" "nfs_mode"))
                   )
                 )  
             (if (and (not (or (configf:lookup *configdat* "setup" "tmp_mode") (configf:lookup *configdat* "setup" "nfs_mode")))  
                      (configf:lookup *configdat* "setup" "use-wal")
                      (string-match "^/tmp/.*" fname)) ;; this is a file in /tmp
                 (sqlite3:execute db "PRAGMA journal_mode=WAL;")