diff options
| author | Robert Haas | 2014-07-24 12:19:19 +0000 |
|---|---|---|
| committer | Robert Haas | 2014-07-24 12:19:51 +0000 |
| commit | 8da262879ef5e53620b9e6a0da82510d09c105cb (patch) | |
| tree | d51f0b3639798ad4104a0a26720b8adb8eb0e623 | |
| parent | e27eee10d7bcc211e1bac38575ed18c18d2ef88b (diff) | |
Avoid access to already-released lock in LockRefindAndRelease.
Spotted by Tom Lane.
| -rw-r--r-- | src/backend/storage/lmgr/lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index cd468bcc99c..723051efb50 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -2949,7 +2949,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); |
