mirror of https://github.com/citusdata/citus.git
Add bit map singleton call
parent
9029107508
commit
205ab01a53
|
@ -393,9 +393,7 @@ WaitForShardSplitRelationSubscriptionsBecomeReady(List *shardSplitPubSubMetadata
|
||||||
ShardSplitSubscriberMetadata *shardSplitPubSubMetadata = NULL;
|
ShardSplitSubscriberMetadata *shardSplitPubSubMetadata = NULL;
|
||||||
foreach_ptr(shardSplitPubSubMetadata, shardSplitPubSubMetadataList)
|
foreach_ptr(shardSplitPubSubMetadata, shardSplitPubSubMetadataList)
|
||||||
{
|
{
|
||||||
Bitmapset *tableOwnerIds = NULL;
|
Bitmapset *tableOwnerIds = bms_make_singleton(shardSplitPubSubMetadata->tableOwnerId);
|
||||||
tableOwnerIds = bms_add_member(tableOwnerIds,
|
|
||||||
shardSplitPubSubMetadata->tableOwnerId);
|
|
||||||
WaitForRelationSubscriptionsBecomeReady(
|
WaitForRelationSubscriptionsBecomeReady(
|
||||||
shardSplitPubSubMetadata->targetNodeConnection, tableOwnerIds,
|
shardSplitPubSubMetadata->targetNodeConnection, tableOwnerIds,
|
||||||
SHARD_SPLIT_SUBSCRIPTION_PREFIX);
|
SHARD_SPLIT_SUBSCRIPTION_PREFIX);
|
||||||
|
@ -414,10 +412,7 @@ WaitForShardSplitRelationSubscriptionsToBeCaughtUp(XLogRecPtr sourcePosition,
|
||||||
ShardSplitSubscriberMetadata *shardSplitPubSubMetadata = NULL;
|
ShardSplitSubscriberMetadata *shardSplitPubSubMetadata = NULL;
|
||||||
foreach_ptr(shardSplitPubSubMetadata, shardSplitPubSubMetadataList)
|
foreach_ptr(shardSplitPubSubMetadata, shardSplitPubSubMetadataList)
|
||||||
{
|
{
|
||||||
Bitmapset *tableOwnerIds = NULL;
|
Bitmapset *tableOwnerIds = bms_make_singleton(shardSplitPubSubMetadata->tableOwnerId);
|
||||||
tableOwnerIds = bms_add_member(tableOwnerIds,
|
|
||||||
shardSplitPubSubMetadata->tableOwnerId);
|
|
||||||
|
|
||||||
WaitForShardSubscriptionToCatchUp(shardSplitPubSubMetadata->targetNodeConnection,
|
WaitForShardSubscriptionToCatchUp(shardSplitPubSubMetadata->targetNodeConnection,
|
||||||
sourcePosition,
|
sourcePosition,
|
||||||
tableOwnerIds,
|
tableOwnerIds,
|
||||||
|
|
Loading…
Reference in New Issue