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

Method ConfState

conn/node.go:216–220  ·  view source on GitHub ↗

ConfState would return the latest ConfState stored in node.

()

Source from the content-addressed store, hash-verified

214
215// ConfState would return the latest ConfState stored in node.
216func (n *Node) ConfState() *raftpb.ConfState {
217 n.RLock()
218 defer n.RUnlock()
219 return n._confState
220}
221
222// Peer returns the address of the peer with the given id.
223func (n *Node) Peer(pid uint64) (string, bool) {

Callers 5

addToClusterMethod · 0.95
IsPeerMethod · 0.80
applySnapshotMethod · 0.80
applyCommittedMethod · 0.80
RunMethod · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected