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

Method SetConfState

conn/node.go:181–186  ·  view source on GitHub ↗

SetConfState would store the latest ConfState generated by ApplyConfChange.

(cs *raftpb.ConfState)

Source from the content-addressed store, hash-verified

179
180// SetConfState would store the latest ConfState generated by ApplyConfChange.
181func (n *Node) SetConfState(cs *raftpb.ConfState) {
182 glog.Infof("Setting conf state to %+v\n", cs)
183 n.Lock()
184 defer n.Unlock()
185 n._confState = cs
186}
187
188// DoneConfChange marks a configuration change as done and sends the given error to the
189// config channel.

Callers 4

applyConfChangeMethod · 0.80
initAndStartNodeMethod · 0.80
applyConfChangeMethod · 0.80
InitAndStartNodeMethod · 0.80

Calls 3

InfofMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected