]> granicus.if.org Git - postgresql/commitdiff
Fix outdated comment
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 23 Aug 2017 18:19:35 +0000 (14:19 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 23 Aug 2017 18:20:34 +0000 (14:20 -0400)
Author: Thomas Munro <thomas.munro@enterprisedb.com>

src/backend/storage/lmgr/predicate.c

index 81d5243689c438070497fe1f769fdadeb6c40260..0e3f34fc852f6301e2e0b479947906a2250a1503 100644 (file)
  *                     than its own active transaction must acquire an exclusive
  *                     lock.
  *
- *     FirstPredicateLockMgrLock based partition locks
+ *     PredicateLockHashPartitionLock(hashcode)
  *             - The same lock protects a target, all locks on that target, and
- *                     the linked list of locks on the target..
- *             - When more than one is needed, acquire in ascending order.
+ *                     the linked list of locks on the target.
+ *             - When more than one is needed, acquire in ascending address order.
+ *             - When all are needed (rare), acquire in ascending index order with
+ *                     PredicateLockHashPartitionLockByIndex(index).
  *
  *     SerializableXactHashLock
  *             - Protects both PredXact and SerializableXidHash.