Skip to main content

update_voter_current_leader

Function update_voter_current_leader 

Source
pub fn update_voter_current_leader(
    quorum: &QuorumStateSnapshot,
) -> CurrentLeader
Expand description

UpdateRaftVoterResponse.CurrentLeader, as RaftUtil.updateVoterResponse fills it in every answer.

It holds the leader id or -1, the epoch, and the leader’s host and port on the controller listener when this node knows them.