Skip to content

Commit b9fecd5

Browse files
committed
Avoid access to already-released lock in LockRefindAndRelease.
Spotted by Tom Lane.
1 parent c7ec796 commit b9fecd5

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy