From 0cd9071130832d051048e051c00d93819436800c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 23 Aug 2017 14:19:35 -0400 Subject: [PATCH] Fix outdated comment Author: Thomas Munro --- src/backend/storage/lmgr/predicate.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/backend/storage/lmgr/predicate.c b/src/backend/storage/lmgr/predicate.c index cc837ea087..29cfcd90ba 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. -- 2.40.0