• Ozan Tezcan's avatar
    Add raft_persist_metadata callback (#118) · 87c205e0
    Ozan Tezcan authored
    Combine raft_persist_vote_f and raft_persist_term_f into 
    a single callback: raft_persist_metadata_f.
    
    Users should persist vote and term into a single metadata file.
    
    After a restart, application should call raft_restore_metadata() 
    to restore vote and term
    87c205e0
virtraft2.py 49.7 KB