GetZeroLeader returns the locator of the current Zero leader, as reported by the Zero at queryIdx.
(queryIdx int)
| 81 | // GetZeroLeader returns the locator of the current Zero leader, as reported by |
| 82 | // the Zero at queryIdx. |
| 83 | func (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. |