diff options
author | Robert Haas <rhaas@postgresql.org> | 2014-07-24 08:19:19 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2014-07-24 08:19:19 -0400 |
commit | 32d78894c2a92cbb2fe7b9160936fee31672e7d9 (patch) | |
tree | 6fbe2961a9d5b6e4e25d37e0682a5f81a6284f73 /src | |
parent | 967a4e7f3107e3c5b732fe4f8e13a1f31a255e46 (diff) | |
download | postgresql-32d78894c2a92cbb2fe7b9160936fee31672e7d9.tar.gz postgresql-32d78894c2a92cbb2fe7b9160936fee31672e7d9.zip |
Avoid access to already-released lock in LockRefindAndRelease.
Spotted by Tom Lane.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/lmgr/lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index cd468bcc99c..723051efb50 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -2949,7 +2949,7 @@ LockRefindAndRelease(LockMethod lockMethodTable, PGPROC *proc, * Decrement strong lock count. This logic is needed only for 2PC. */ if (decrement_strong_lock_count - && ConflictsWithRelationFastPath(&lock->tag, lockmode)) + && ConflictsWithRelationFastPath(locktag, lockmode)) { uint32 fasthashcode = FastPathStrongLockHashPartition(hashcode); |