Log the time to lock load-new-guix-revision-inserts

This commit is contained in:
Christopher Baines 2020-02-02 10:24:11 +01:00
parent 956aa9ecb0
commit 908f6d3eee

View file

@ -907,10 +907,13 @@ WHERE job_id = $1"
(lambda ()
(all-inferior-package-derivations store inf packages)))))
;; Wait until this is the only transaction inserting data, to
;; avoid any concurrency issues
(obtain-advisory-transaction-lock conn
'load-new-guix-revision-inserts)
(log-time
"acquiring advisory transaction lock: load-new-guix-revision-inserts"
(lambda ()
;; Wait until this is the only transaction inserting data, to
;; avoid any concurrency issues
(obtain-advisory-transaction-lock conn
'load-new-guix-revision-inserts)))
(let* ((package-ids
(insert-packages conn inf packages))