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
((system . target)
(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"
wal-bytes)