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

Method RemoveNode

store/cluster.go:127–132  ·  view source on GitHub ↗
(shardIndex int, nodeID string)

Source from the content-addressed store, hash-verified

125}
126
127func (cluster *Cluster) RemoveNode(shardIndex int, nodeID string) error {
128 if shardIndex < 0 || shardIndex >= len(cluster.Shards) {
129 return consts.ErrIndexOutOfRange
130 }
131 return cluster.Shards[shardIndex].removeNode(nodeID)
132}
133
134func (cluster *Cluster) PromoteNewMaster(ctx context.Context,
135 shardIdx int, masterNodeID, preferredNodeID string,

Callers 1

RemoveMethod · 0.45

Calls 1

removeNodeMethod · 0.80

Tested by

no test coverage detected