Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
371
func
(n *Node) GetRaftLead() uint64 {
372
return
n.raftNode.Status().Lead
373
}
374
375
func
(n *Node) IsReady(ctx context.Context) bool {
376
tries := 0
Callers
5
watchLeaderChange
Method · 0.95
Leader
Method · 0.95
IsReady
Method · 0.95
GetLeaderID
Method · 0.80
ListPeers
Method · 0.80
Implementers
1
ClusterNode
store/cluster_node.go
Calls
no outgoing calls
Tested by
1
GetLeaderID
Method · 0.64