Remove metadata locks from size functions

pull/3666/head
Hanefi Onaldi 2020-03-24 16:35:14 +03:00 committed by Hanefi Önaldı
parent 0430b568be
commit 1d22d0c2ff
No known key found for this signature in database
GPG Key ID: 45A2ACB84E394FBA
1 changed files with 0 additions and 12 deletions

View File

@ -301,18 +301,6 @@ ShardIntervalsOnWorkerGroup(WorkerNode *workerNode, Oid relationId)
placementIndex++)
{
GroupShardPlacement *placement = &placementArray[placementIndex];
uint64 shardId = placement->shardId;
bool metadataLock = TryLockShardDistributionMetadata(shardId, ShareLock);
/* if the lock is not acquired warn the user */
if (metadataLock == false)
{
ereport(WARNING, (errcode(ERRCODE_LOCK_NOT_AVAILABLE),
errmsg("lock is not acquired, size of shard "
UINT64_FORMAT " will be ignored", shardId)));
continue;
}
if (placement->groupId == workerNode->groupId)
{