Use a separate db connection in channel-derivations-by-system-promise

As this can run in parallel with something else using conn.
This commit is contained in:
Christopher Baines 2024-11-02 09:35:23 +00:00
parent 6265c37e89
commit ed6a4b1577

View file

@ -2214,11 +2214,14 @@ SELECT 1 FROM derivation_source_file_nars WHERE derivation_source_file_id = $1"
(define channel-derivations-by-system-promise
(fibers-delay
(lambda ()
(with-postgresql-connection
"load-new-guix-revision channel->source-and-derivations-by-system"
(lambda (channel-conn)
(channel->source-and-derivations-by-system
conn
channel-conn
channel-for-commit
fetch-with-authentication?
#:parallelism parallelism))))
#:parallelism parallelism))))))
(define guix-revision-id-promise
(fibers-delay