MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / GetZeroLeader

Method GetZeroLeader

dgraphtest/zero_state.go:83–85  ·  view source on GitHub ↗

GetZeroLeader returns the locator of the current Zero leader, as reported by the Zero at queryIdx.

(queryIdx int)

Source from the content-addressed store, hash-verified

81// GetZeroLeader returns the locator of the current Zero leader, as reported by
82// the Zero at queryIdx.
83func (c *LocalCluster) GetZeroLeader(queryIdx int) (*ZeroLocator, error) {
84 return c.findZero(queryIdx, true)
85}
86
87// GetZeroFollower returns the locator of any Zero that is not the leader, as
88// reported by the Zero at queryIdx.

Calls 1

findZeroMethod · 0.95