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

Method GetRaftLead

store/engine/raft/node.go:371–373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369}
370
371func (n *Node) GetRaftLead() uint64 {
372 return n.raftNode.Status().Lead
373}
374
375func (n *Node) IsReady(ctx context.Context) bool {
376 tries := 0

Callers 5

watchLeaderChangeMethod · 0.95
LeaderMethod · 0.95
IsReadyMethod · 0.95
GetLeaderIDMethod · 0.80
ListPeersMethod · 0.80

Implementers 1

ClusterNodestore/cluster_node.go

Calls

no outgoing calls

Tested by 1

GetLeaderIDMethod · 0.64