guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Only clear the %store-table when it's defined


From: Christopher Baines
Subject: branch master updated: Only clear the %store-table when it's defined
Date: Tue, 17 May 2022 07:07:06 -0400

This is an automated email from the git hooks/post-receive script.

cbaines pushed a commit to branch master
in repository data-service.

The following commit(s) were added to refs/heads/master by this push:
     new 198b6ef  Only clear the %store-table when it's defined
198b6ef is described below

commit 198b6ef719745a48918e703990d1e846ffcd65b0
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Tue May 17 12:06:09 2022 +0100

    Only clear the %store-table when it's defined
---
 guix-data-service/jobs/load-new-guix-revision.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/guix-data-service/jobs/load-new-guix-revision.scm 
b/guix-data-service/jobs/load-new-guix-revision.scm
index 7f00c22..bbdc7fc 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -575,7 +575,9 @@ WHERE job_id = $1")
 
                   ;; Clean the cached store connections, as there are caches
                   ;; associated with these that take up lots of memory
-                  (inferior-eval '(hash-clear! %store-table) inf)
+                  (inferior-eval
+                   '(when (defined? '%store-table) (hash-clear! %store-table))
+                   inf)
 
                   warnings))))))
       checkers))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]