Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 32d7889

Browse files
committed
Avoid access to already-released lock in LockRefindAndRelease.
Spotted by Tom Lane.
1 parent 967a4e7 commit 32d7889

File tree

1 file changed

+1
-1
lines changed
  • src/backend/storage/lmgr

1 file changed

+1
-1
lines changed

src/backend/storage/lmgr/lock.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2949,7 +2949,7 @@ LockRefindAndRelease(LockMethod lockMethodTable, PGPROC *proc,
29492949
* Decrement strong lock count. This logic is needed only for 2PC.
29502950
*/
29512951
if (decrement_strong_lock_count
2952-
&& ConflictsWithRelationFastPath(&lock->tag, lockmode))
2952+
&& ConflictsWithRelationFastPath(locktag, lockmode))
29532953
{
29542954
uint32 fasthashcode = FastPathStrongLockHashPartition(hashcode);
29552955

0 commit comments

Comments
 (0)