mirror of https://github.com/citusdata/citus.git
Move sync check on create dist table
parent
72caebec3a
commit
fc36de02ba
|
@ -509,6 +509,11 @@ CreateDistributedTable(Oid relationId, Var *distributionColumn, char distributio
|
||||||
CreateTruncateTrigger(relationId);
|
CreateTruncateTrigger(relationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ShouldSyncTableMetadata(relationId))
|
||||||
|
{
|
||||||
|
SyncCitusTableMetadata(relationId);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we are using master_create_distributed_table, we don't need to continue,
|
* If we are using master_create_distributed_table, we don't need to continue,
|
||||||
* because deprecated API does not supports the following features.
|
* because deprecated API does not supports the following features.
|
||||||
|
@ -534,11 +539,6 @@ CreateDistributedTable(Oid relationId, Var *distributionColumn, char distributio
|
||||||
CreateReferenceTableShard(relationId);
|
CreateReferenceTableShard(relationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ShouldSyncTableMetadata(relationId))
|
|
||||||
{
|
|
||||||
SyncCitusTableMetadata(relationId);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We've a custom way of foreign key graph invalidation,
|
* We've a custom way of foreign key graph invalidation,
|
||||||
* see InvalidateForeignKeyGraph().
|
* see InvalidateForeignKeyGraph().
|
||||||
|
|
Loading…
Reference in New Issue