Added logic to not attempt to process cached-writes if they were processed within the last 400 ms. Added stats on cached writes
check-in: 04ba871116 user: mrwellan tags: newdashboard
Partial re-implementation (again) of transaction wrapped writes, now working except for transaction within transaction issue
check-in: 69c6ef28ac user: mrwellan tags: newdashboard
Partial re-implementation (again) of transaction wrapped writes, now working except for transaction within transaction issue
check-in: 7bbc43c98d user: mrwellan tags: newdashboard
;; Flush the queue every third of a second. Can we assume that setup-for-run
;; has already been done?
(define (server:write-queue-handler)
(if (setup-for-run)
(let ((db (open-db)))
(let loop ()
(mutex-lock! *db:process-queue-mutex*)
(db:process-cached-writes db)
(mutex-unlock! *db:process-queue-mutex*)
(thread-sleep! 0.3)
(loop)))
(begin
(debug:print 0 "ERROR: failed to setup for Megatest in server:write-queue-handler")
(exit 1))))
;;======================================================================