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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(PartitionTable(relationId)) {
|
||||||
|
Oid parentId = PartitionParentOid(relationId);
|
||||||
|
LockRelationOid(parentId, AccessExclusiveLock);
|
||||||
|
LockRelationOid(relationId, AccessExclusiveLock);
|
||||||
LockParentShardResourcesForShardsOfPartition(relationId);
|
LockParentShardResourcesForShardsOfPartition(relationId);
|
||||||
|
}
|
||||||
|
|
||||||
if (IsCitusTableType(relationId, REFERENCE_TABLE))
|
if (IsCitusTableType(relationId, REFERENCE_TABLE))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue