Log the time to lock package_versions_by_guix_revision_range
This commit is contained in:
parent
908f6d3eee
commit
65850669a0
1 changed files with 9 additions and 6 deletions
|
|
@ -984,13 +984,16 @@ WHERE job_id = $1"
|
|||
(display-backtrace (make-stack #t) (current-error-port)))))))
|
||||
|
||||
(define (update-package-versions-table conn git-repository-id commit)
|
||||
(log-time
|
||||
"lock table: package_versions_by_guix_revision_range"
|
||||
(lambda ()
|
||||
;; Lock the table to wait for other transactions to commit before updating
|
||||
;; the table
|
||||
(exec-query
|
||||
conn
|
||||
"
|
||||
LOCK TABLE ONLY package_versions_by_guix_revision_range
|
||||
IN SHARE ROW EXCLUSIVE MODE")
|
||||
IN SHARE ROW EXCLUSIVE MODE")))
|
||||
|
||||
(for-each
|
||||
(match-lambda
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue