MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / IsMigrating

Method IsMigrating

store/cluster_shard.go:120–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (shard *Shard) IsMigrating() bool {
121 return shard.MigratingSlot != nil && shard.MigratingSlot.IsMigrating && shard.TargetShardIndex != -1
122}
123
124func (shard *Shard) GetMasterNode() Node {
125 for _, node := range shard.Nodes {

Callers 4

IsServicingMethod · 0.95
MigrateSlotMethod · 0.80
printClusterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected