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:39:46 -0400 |
commit | 18470e5f2f3767547f596dcd2e174dc2fc7076fe (patch) | |
tree | 938d1a338619e8e7d608078558f303c321cc675f /src/backend/storage/lmgr/lock.c | |
parent | 1da2f64fd166a1ad7c26dc04c82d538be5ac986f (diff) |
Avoid access to already-released lock in LockRefindAndRelease.
Spotted by Tom Lane.
Diffstat (limited to 'src/backend/storage/lmgr/lock.c')
-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 e62ba62a0f1..e6fc7a2b298 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -2878,7 +2878,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); |