Fix outdated comment
authorPeter Eisentraut <[email protected]>
Wed, 23 Aug 2017 18:19:35 +0000 (14:19 -0400)
committerPeter Eisentraut <[email protected]>
Wed, 23 Aug 2017 18:19:35 +0000 (14:19 -0400)
Author: Thomas Munro <[email protected]>

src/backend/storage/lmgr/predicate.c

index 74e4b35837b4ebbb41ebb0ee5eeb053fe23be8a6..6a6d9d6d5cc9e321425a4293b83093e0d05d5115 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.