mirror of https://github.com/citusdata/citus.git
Get the table-level locks before the advisory lock
parent
d8d86629e5
commit
7c55c41a83
|
@ -139,7 +139,12 @@ PreprocessDropTableStmt(Node *node, const char *queryString,
|
|||
continue;
|
||||
}
|
||||
|
||||
LockParentShardResourcesForShardsOfPartition(relationId);
|
||||
if(PartitionTable(relationId)) {
|
||||
Oid parentId = PartitionParentOid(relationId);
|
||||
LockRelationOid(parentId, AccessExclusiveLock);
|
||||
LockRelationOid(relationId, AccessExclusiveLock);
|
||||
LockParentShardResourcesForShardsOfPartition(relationId);
|
||||
}
|
||||
|
||||
if (IsCitusTableType(relationId, REFERENCE_TABLE))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue