Commit 1c6cb689 authored by Willem Thiart's avatar Willem Thiart
Browse files

Make raft_set_commit_idx public

parent 99129dfa
......@@ -565,6 +565,11 @@ void raft_vote(raft_server_t* me_, raft_node_t* node);
* @param[in] term The new current term */
void raft_set_current_term(raft_server_t* me, const int term);
/** Set the commit idx.
* This should be used to reload persistent state, ie. the commit_idx field.
* @param[in] commit_idx The new commit index. */
void raft_set_commit_idx(raft_server_t* me, int commit_idx);
/** Add an entry to the server's log.
* This should be used to reload persistent state, ie. the commit log.
* @param[in] ety The entry to be appended */
......
......@@ -89,8 +89,6 @@ int raft_apply_entry(raft_server_t* me_);
* @return 0 if unsuccessful */
int raft_append_entry(raft_server_t* me_, raft_entry_t* c);
void raft_set_commit_idx(raft_server_t* me, int commit_idx);
void raft_set_last_applied_idx(raft_server_t* me, int idx);
void raft_set_state(raft_server_t* me_, int state);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment