aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-12-19 12:29:00 +0000
committerChristopher Baines <mail@cbaines.net>2024-12-19 12:34:25 +0000
commit6d0a10f35695a28c78651930188f8e5f1ad9ba73 (patch)
tree38a465e94208b874a23e5aa85b83cf918f5df61f
parentd251a843b7a15a822c8eead5df92f6b8ed399093 (diff)
downloadnar-herder-6d0a10f35695a28c78651930188f8e5f1ad9ba73.tar
nar-herder-6d0a10f35695a28c78651930188f8e5f1ad9ba73.tar.gz
Make check open the database just for reads
-rw-r--r--scripts/nar-herder.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/nar-herder.in b/scripts/nar-herder.in
index a611018..812ec98 100644
--- a/scripts/nar-herder.in
+++ b/scripts/nar-herder.in
@@ -602,7 +602,8 @@
(loop (cdr levels)))))
(let* ((database (setup-database (assq-ref opts 'database)
- metrics-registry))
+ metrics-registry
+ #:readonly? #t))
(canonical-storage (and=> (assq-ref opts 'storage)
canonicalize-path)))