aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage
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:20:57 -0400
commitfe4c6582465719efc7534ae184fcc4b9dd6b1660 (patch)
tree0ace5584a997f7c54cbaab2237fc235ef35c7b6d /src/backend/storage
parent3d58994eccb77b7ff07398049cd2eb129bb5c943 (diff)
downloadpostgresql-fe4c6582465719efc7534ae184fcc4b9dd6b1660.tar.gz
postgresql-fe4c6582465719efc7534ae184fcc4b9dd6b1660.zip
Fix outdated comment
Author: Thomas Munro <thomas.munro@enterprisedb.com>
Diffstat (limited to 'src/backend/storage')
-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 113457cbd0e..1c0ce9245fa 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.