Skip to content

Commit 1e1b01c

Browse files
committed
Fix outdated comment
Author: Thomas Munro <thomas.munro@enterprisedb.com>
1 parent 237a0b8 commit 1e1b01c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/backend/storage/lmgr/predicate.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@
116116
* than its own active transaction must acquire an exclusive
117117
* lock.
118118
*
119-
* FirstPredicateLockMgrLock based partition locks
119+
* PredicateLockHashPartitionLock(hashcode)
120120
* - The same lock protects a target, all locks on that target, and
121-
* the linked list of locks on the target..
122-
* - When more than one is needed, acquire in ascending order.
121+
* the linked list of locks on the target.
122+
* - When more than one is needed, acquire in ascending address order.
123+
* - When all are needed (rare), acquire in ascending index order with
124+
* PredicateLockHashPartitionLockByIndex(index).
123125
*
124126
* SerializableXactHashLock
125127
* - Protects both PredXact and SerializableXidHash.

0 commit comments

Comments
 (0)