pub fn must_sync(st: HardState, pre_st: HardState, ents_num: usize) -> bool {
    // Persistent state on all servers:
    // (Updated on stable storage before responding to RPCs)
    // currentTerm
    // votedFor
    // log entries[]
    ents_num != 0 || st.get_vote() != pre_st.get_vote() || st.get_term() != pre_st.get_term()
}
/// MustSync returns true if the hard state and count of Raft entries indicate
/// that a synchronous write to persistent storage is required.
MustSync returns true if the hard state and count of Raft entries indicate
that a synchronous write to persistent storage is required.
MustSync returns true if the hard state and count of Raft entries indicate that a synchronous write to persistent storage is required .
pub fn must_sync(st: HardState, pre_st: HardState, ents_num: usize) -> bool {
    // Persistent state on all servers:
    // (Updated on stable storage before responding to RPCs)
    // currentTerm
    // votedFor
    // log entries[]
    ents_num != 0 || st.get_vote() != pre_st.get_vote() || st.get_term() != pre_st.get_term()
}
pub fn must_sync ( st : HardState , pre_st : HardState , ents_num : usize ) -> bool { // Persistent state on all servers: // (Updated on stable storage before responding to RPCs) // currentTerm // votedFor // log entries[] ents_num != 0 || st . get_vote ( ) != pre_st . get_vote ( ) || st . get_term ( ) != pre_st . get_term ( ) }
MustSync returns true if the hard state and count of Raft entries indicate
that a synchronous write to persistent storage is required.
MustSync returns true if the hard state and count of Raft entries indicate that a synchronous write to persistent storage is required .
st
HardState
pre_st
HardState
ents_num
usize