-
Committer:
MaaS Lander
-
Author(s):
Gavin Panella
-
Date:
2014-10-09 15:19:17 UTC
-
mfrom:
(3211.2.3 database-xact-lock)
-
Revision ID:
maas_lander-20141009151917-ecxnk8z1l1zasvpt
[r=julian-edwards][bug=][author=allenap] Use pg_advisory_xact_lock in preference to pg_advisory_lock.
The latter, when used by DatabaseLock, releases the lock before database updates are committed. This is fine for managing access to an external resource, but not for most of the existing uses in MAAS.