Skip to content

Commit

Permalink
MB-52930 Populate topologyChange in ShardRebalancer object
Browse files Browse the repository at this point in the history
Change-Id: Ia7e663b89f7dad86c66b077c8acbb2d55c4c1054
  • Loading branch information
varunv-cb committed Sep 9, 2022
1 parent ccbefd1 commit 6766fd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions secondary/indexer/shard_rebalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ type ShardRebalancer struct {
config c.ConfigHolder
retErr error

// topologyChange is populated in Rebalance and Failover cases only, else nil
topologyChange *service.TopologyChange

// Metakv management
metakvCancel chan struct{}
metakvMutex sync.RWMutex
Expand Down Expand Up @@ -92,6 +95,8 @@ func NewShardRebalancer(transferTokens map[string]*c.TransferToken, rebalToken *
done: make(chan struct{}),
metakvCancel: make(chan struct{}),
waitForTokenPublish: make(chan struct{}),

topologyChange: topologyChange,
}

sr.config.Store(config)
Expand Down

0 comments on commit 6766fd3

Please sign in to comment.