guix-commits
[Top][All Lists]
Advanced

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

02/02: Fix closing thread postgresql connections


From: Christopher Baines
Subject: 02/02: Fix closing thread postgresql connections
Date: Thu, 17 Nov 2022 11:32:43 -0500 (EST)

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

commit ca1e4819b6d5a7e8588f98979831fb755047ec53
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu Nov 17 16:32:04 2022 +0000

    Fix closing thread postgresql connections
---
 guix-data-service/database.scm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/guix-data-service/database.scm b/guix-data-service/database.scm
index 3a39798..25305b2 100644
--- a/guix-data-service/database.scm
+++ b/guix-data-service/database.scm
@@ -153,8 +153,7 @@
       (pg-conn-finish conn)
       (hash-remove! (%postgresql-connections-hash-table)
                     (current-thread))
-      (fluid-set! %thread-postgresql-connection
-                  conn))))
+      (fluid-set! %thread-postgresql-connection #f))))
 
 (define* (with-postgresql-transaction conn f
                                       #:key always-rollback?)



reply via email to

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