]> 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:18 +0000 (14:20 -0400)
Author: Thomas Munro <thomas.munro@enterprisedb.com>

src/backend/storage/lmgr/predicate.c

index cc837ea087efbe744c0a90aee46e1d17d3cd4589..29cfcd90ba6df968a112e145029689c6c4f40f3e 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.