mirror of
https://github.com/postgres/postgres.git
synced 2026-03-06 07:15:44 -05:00
Avoid access to already-released lock in LockRefindAndRelease.
Spotted by Tom Lane.
This commit is contained in:
parent
1da2f64fd1
commit
18470e5f2f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue