From 93210ea7369a384917bbb03e34a69529f9c3fd64 Mon Sep 17 00:00:00 2001 From: Onder Kalaci Date: Wed, 17 Aug 2022 10:16:25 +0200 Subject: [PATCH] Colocation Lock changed to ShareLock --- src/backend/distributed/utils/reference_table_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/distributed/utils/reference_table_utils.c b/src/backend/distributed/utils/reference_table_utils.c index 705a3a670..01c441657 100644 --- a/src/backend/distributed/utils/reference_table_utils.c +++ b/src/backend/distributed/utils/reference_table_utils.c @@ -119,7 +119,7 @@ EnsureReferenceTablesExistOnAllNodesExtended(char transferMode) * Since the changes to the reference table placements are made via loopback * connections we release the final lock held at the end of this function. */ - LOCKMODE lockmodes[] = { AccessShareLock, ExclusiveLock }; + LOCKMODE lockmodes[] = { ShareLock, ExclusiveLock }; for (int l = 0; l < lengthof(lockmodes); l++) { LockColocationId(colocationId, lockmodes[l]);