mirror of https://github.com/citusdata/citus.git
Mark sequence distributed explicitly while syncing metadata
Since sequences are not marked as distributed while creating table if no metadata worker node exists, we are marking all sequences distributed while syncing metadata explicitly.pull/5415/head
parent
6d849cf394
commit
21194c3b9d
|
@ -604,6 +604,13 @@ MetadataCreateCommands(void)
|
|||
ObjectAddress sequenceAddress = { 0 };
|
||||
ObjectAddressSet(sequenceAddress, RelationRelationId, sequenceOid);
|
||||
EnsureDependenciesExistOnAllNodes(&sequenceAddress);
|
||||
|
||||
/*
|
||||
* Sequences are not marked as distributed while creating table
|
||||
* if no metadata worker node exists. We are marking all sequences
|
||||
* distributed while syncing metadata in such case.
|
||||
*/
|
||||
MarkObjectDistributed(&sequenceAddress);
|
||||
}
|
||||
|
||||
SetLocalEnableDependencyCreation(prevDependencyCreationValue);
|
||||
|
|
Loading…
Reference in New Issue