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:08 -0400 |
commit | da19c32c6b7dd7d0ff5814538adf5aaa665848a1 (patch) | |
tree | e704b04e968cf37cda0ee5245754ed03e87e19c4 /src | |
parent | 8bf94694691d1188aee671cdd9ce59c27df9bc7f (diff) | |
download | postgresql-da19c32c6b7dd7d0ff5814538adf5aaa665848a1.tar.gz postgresql-da19c32c6b7dd7d0ff5814538adf5aaa665848a1.zip |
Fix outdated comment
Author: Thomas Munro <thomas.munro@enterprisedb.com>
Diffstat (limited to 'src')
-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 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. |