From 198b6ef719745a48918e703990d1e846ffcd65b0 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 17 May 2022 12:06:09 +0100 Subject: [PATCH] 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))))