mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +03:00
Avoid access to already-released lock in LockRefindAndRelease.
Spotted by Tom Lane.
This commit is contained in:
parent
c7ec796a26
commit
b9fecd5330
@ -2948,7 +2948,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…
x
Reference in New Issue
Block a user