aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-08-23 14:19:35 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-08-23 14:19:35 -0400
commit1e1b01cd1632a7d768fb8c86c95cf3ec82dc58da (patch)
tree54b0b1503ee9c9be684d42fce9e6af5179276ee5
parent237a0b87b1dc90f8789aa5441a2a11e67f46c96e (diff)
downloadpostgresql-1e1b01cd1632a7d768fb8c86c95cf3ec82dc58da.tar.gz
postgresql-1e1b01cd1632a7d768fb8c86c95cf3ec82dc58da.zip
Fix outdated comment
Author: Thomas Munro <thomas.munro@enterprisedb.com>
-rw-r--r--src/backend/storage/lmgr/predicate.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/storage/lmgr/predicate.c b/src/backend/storage/lmgr/predicate.c
index 74e4b35837b..6a6d9d6d5cc 100644
--- a/src/backend/storage/lmgr/predicate.c
+++ b/src/backend/storage/lmgr/predicate.c
@@ -116,10 +116,12 @@
* 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.