Commit e8509359 authored by Willem Thiart's avatar Willem Thiart
Browse files

Remove commit loop

parent 3fc7f32b
......@@ -303,8 +303,6 @@ int raft_recv_appendentries(
{
int last_log_idx = max(raft_get_current_idx(me_), 1);
raft_set_commit_idx(me_, min(last_log_idx, ae->leader_commit));
while (0 == raft_apply_entry(me_))
;
}
if (raft_is_candidate(me_))
......
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