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

Method GetMasterNode

store/cluster_shard.go:124–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124func (shard *Shard) GetMasterNode() Node {
125 for _, node := range shard.Nodes {
126 if node.IsMaster() {
127 return node
128 }
129 }
130 return nil
131}
132
133func (shard *Shard) removeNode(nodeID string) error {
134 isFound := false

Callers 2

MigrateSlotMethod · 0.80

Calls 1

IsMasterMethod · 0.65

Tested by

no test coverage detected