Reduce the WAL size threshold

This commit is contained in:
Christopher Baines 2024-07-19 17:27:35 +01:00
parent 3f1c2ad603
commit ed4ba8eb95

View file

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