MCPcopy
hub / github.com/dgraph-io/dgraph / Raft

Method Raft

conn/node.go:174–178  ·  view source on GitHub ↗

Raft would return back the raft.Node stored in the node.

()

Source from the content-addressed store, hash-verified

172
173// Raft would return back the raft.Node stored in the node.
174func (n *Node) Raft() raft.Node {
175 n.RLock()
176 defer n.RUnlock()
177 return n._raft
178}
179
180// SetConfState would store the latest ConfState generated by ApplyConfChange.
181func (n *Node) SetConfState(cs *raftpb.ConfState) {

Callers 15

doSendMessageMethod · 0.95
ProposeConfChangeMethod · 0.95
ProposePeerRemovalMethod · 0.95
RunReadIndexLoopMethod · 0.95
runMethod · 0.95
TestProposalFunction · 0.95
IsPeerMethod · 0.80
JoinClusterMethod · 0.80
RaftMessageMethod · 0.80
amLeaderMethod · 0.80
proposeAndWaitMethod · 0.80
applyConfChangeMethod · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by 2

runMethod · 0.76
TestProposalFunction · 0.76