mirror of https://github.com/citusdata/citus.git
Remove metadata object from ref table prop
parent
9fec89d70b
commit
50f52101b8
|
@ -379,14 +379,9 @@ ReplicateShardToNode(ShardInterval *shardInterval, char *nodeName, int nodePort)
|
||||||
InsertShardPlacementRow(shardId, placementId, SHARD_STATE_ACTIVE, 0,
|
InsertShardPlacementRow(shardId, placementId, SHARD_STATE_ACTIVE, 0,
|
||||||
groupId);
|
groupId);
|
||||||
|
|
||||||
if (ShouldSyncTableMetadata(shardInterval->relationId))
|
// Since having a duplicate on pg_dist_placement can cause issue, we don't add
|
||||||
{
|
// it to all nodes here. Caller of this function must propagate pg_dist_placement to
|
||||||
char *placementCommand = PlacementUpsertCommand(shardId, placementId,
|
// other nodes if it is required.
|
||||||
SHARD_STATE_ACTIVE, 0,
|
|
||||||
groupId);
|
|
||||||
|
|
||||||
SendCommandToWorkersWithMetadata(placementCommand);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue