Skip to main content

quorum_state_load_decision

Function quorum_state_load_decision 

Source
pub fn quorum_state_load_decision(
    data_version: i32,
    leader_epoch: i32,
    voted_id: i32,
    version_fields_valid: bool,
    voted_directory_valid: bool,
    voted_directory_nil: bool,
) -> QuorumStateLoadDecision
Expand description

Admit only schema v0 or v1 records with a nonnegative term, the exact vote sentinel, and valid version-specific fields.

Schema v1’s no-vote sentinel must carry the nil directory sentinel written by the encoder.