Fix WAL threshold

As it was too small.
This commit is contained in:
Christopher Baines 2024-05-13 17:20:25 +01:00
parent f4be647610
commit 2043a4ef6f

View file

@ -1485,7 +1485,7 @@
(match-lambda (match-lambda
((system . target) ((system . target)
(let loop ((wal-bytes (stat:size (stat "/var/guix/db/db.sqlite-wal")))) (let loop ((wal-bytes (stat:size (stat "/var/guix/db/db.sqlite-wal"))))
(when (> wal-bytes 200000000) (when (> wal-bytes (* 2048 (expt 2 20)))
(simple-format #t "debug: guix-daemon WAL is large (~A), waiting\n" (simple-format #t "debug: guix-daemon WAL is large (~A), waiting\n"
wal-bytes) wal-bytes)