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