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

Method GetZeroFollower

dgraphtest/zero_state.go:89–91  ·  view source on GitHub ↗

GetZeroFollower returns the locator of any Zero that is not the leader, as reported by the Zero at queryIdx.

(queryIdx int)

Source from the content-addressed store, hash-verified

87// GetZeroFollower returns the locator of any Zero that is not the leader, as
88// reported by the Zero at queryIdx.
89func (c *LocalCluster) GetZeroFollower(queryIdx int) (*ZeroLocator, error) {
90 return c.findZero(queryIdx, false)
91}
92
93// GetZeroFollowers returns the locators of all non-leader Zeros, as reported
94// by the Zero at queryIdx.

Calls 1

findZeroMethod · 0.95