fix_concurrent_shard_move_create_table_try_2
Onder Kalaci 2022-07-18 10:07:35 +02:00
parent aeb644be5a
commit bf9b64fdc1
1 changed files with 0 additions and 12 deletions

View File

@ -1553,18 +1553,6 @@ RebalanceTableShards(RebalanceOptions *options, Oid shardReplicationModeOid)
return; return;
} }
Oid relationId = InvalidOid;
char *operationName = "rebalance";
if (options->drainOnly)
{
operationName = "move";
}
foreach_oid(relationId, options->relationIdList)
{
AcquireColocationLock(relationId, ExclusiveLock, operationName);
}
List *placementUpdateList = GetRebalanceSteps(options); List *placementUpdateList = GetRebalanceSteps(options);
if (list_length(placementUpdateList) == 0) if (list_length(placementUpdateList) == 0)