Commit 32d78894 authored by Robert Haas's avatar Robert Haas

Avoid access to already-released lock in LockRefindAndRelease.

Spotted by Tom Lane.
parent 967a4e7f
...@@ -2949,7 +2949,7 @@ LockRefindAndRelease(LockMethod lockMethodTable, PGPROC *proc, ...@@ -2949,7 +2949,7 @@ LockRefindAndRelease(LockMethod lockMethodTable, PGPROC *proc,
* Decrement strong lock count. This logic is needed only for 2PC. * Decrement strong lock count. This logic is needed only for 2PC.
*/ */
if (decrement_strong_lock_count if (decrement_strong_lock_count
&& ConflictsWithRelationFastPath(&lock->tag, lockmode)) && ConflictsWithRelationFastPath(locktag, lockmode))
{ {
uint32 fasthashcode = FastPathStrongLockHashPartition(hashcode); uint32 fasthashcode = FastPathStrongLockHashPartition(hashcode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment