]> granicus.if.org Git - postgresql/commit
Improve LockAcquire API per my recent proposal. All error conditions
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 May 2005 22:45:02 +0000 (22:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 May 2005 22:45:02 +0000 (22:45 +0000)
commit140b078d2a21acedc3398896f0f360f5d01ffb6c
treee8e104dcf25a248eea44253396caae9eb80f051d
parent299c4420778a81046788a704b72aaba6a8a988cc
Improve LockAcquire API per my recent proposal.  All error conditions
are now reported via elog, eliminating the need to test the result code
at most call sites.  Make it possible for the caller to distinguish a
freshly acquired lock from one already held in the current transaction.
Use that capability to avoid redundant AcceptInvalidationMessages() calls
in LockRelation().
contrib/userlock/user_locks.c
src/backend/storage/lmgr/lmgr.c
src/backend/storage/lmgr/lock.c
src/include/storage/lock.h