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

Fix: Do not drop if current_idx is 0

parent 29bf1bcf
...@@ -176,7 +176,7 @@ int raft_recv_appendentries_response(raft_server_t* me_, ...@@ -176,7 +176,7 @@ int raft_recv_appendentries_response(raft_server_t* me_,
r->first_idx); r->first_idx);
/* Stale response -- ignore */ /* Stale response -- ignore */
if (r->current_idx <= raft_node_get_match_idx(node)) if (r->current_idx != 0 && r->current_idx <= raft_node_get_match_idx(node))
return 0; return 0;
if (!raft_is_leader(me_)) if (!raft_is_leader(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