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

Method triggerLeaderChange

dgraph/cmd/zero/raft.go:561–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559}
560
561func (n *node) triggerLeaderChange() {
562 n.server.triggerLeaderChange()
563 // We update leader information on each node without proposal. This
564 // function is called on all nodes on leader change.
565 n.server.updateZeroLeader()
566}
567
568func (n *node) proposeNewCID() {
569 // Either this is a new cluster or can't find a CID in the entries. So, propose a new ID for the cluster.

Callers 2

applyConfChangeMethod · 0.95
RunMethod · 0.95

Calls 1

updateZeroLeaderMethod · 0.80

Tested by

no test coverage detected