diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-08-23 14:19:35 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-08-23 14:20:34 -0400 |
commit | 6bd9c1bc9bb4af8d79da0e9581b70c89119fbb6f (patch) | |
tree | 7838f7928ef098370335eb441d549bd1d4e59b78 | |
parent | 6bf4dca8f62c8ed222089ca729cb8ca468acfef1 (diff) | |
download | postgresql-6bd9c1bc9bb4af8d79da0e9581b70c89119fbb6f.tar.gz postgresql-6bd9c1bc9bb4af8d79da0e9581b70c89119fbb6f.zip |
Fix outdated comment
Author: Thomas Munro <thomas.munro@enterprisedb.com>
-rw-r--r-- | src/backend/storage/lmgr/predicate.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/storage/lmgr/predicate.c b/src/backend/storage/lmgr/predicate.c index 81d5243689c..0e3f34fc852 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. |