From 99d73fd3e56cd67ad734d1750fd24c8574ca1b25 Mon Sep 17 00:00:00 2001 From: eaydingol <60466783+eaydingol@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:20:49 +0000 Subject: [PATCH] update comment --- src/backend/distributed/utils/resource_lock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/distributed/utils/resource_lock.c b/src/backend/distributed/utils/resource_lock.c index 48e613ddc..23c4534d3 100644 --- a/src/backend/distributed/utils/resource_lock.c +++ b/src/backend/distributed/utils/resource_lock.c @@ -712,6 +712,7 @@ SerializeNonCommutativeWrites(List *shardIntervalList, LOCKMODE lockMode) /* * Acquire locks on the modified table. * If the table is replicated, the locks are first acquired on the first worker node then locally. + * But if we're already on the first worker, acquiring on the first worker node and locally are the same operation. So we only acquire locally in that case. */ if (anyTableReplicated && ClusterHasKnownMetadataWorkers() && !IsFirstWorkerNode()) {