Commit 42ac86d3 authored by javeme's avatar javeme Committed by Willem
Browse files

trivial: remove the redundant assertion of 'next_idx'

remove the redundant assertion of 'next_idx' in raft_recv_appendentries_response().
parent 2a10b1d5
......@@ -249,8 +249,6 @@ int raft_recv_appendentries_response(raft_server_t* me_,
{
/* If AppendEntries fails because of log inconsistency:
decrement nextIndex and retry (§5.3) */
assert(0 <= raft_node_get_next_idx(node));
int next_idx = raft_node_get_next_idx(node);
assert(0 <= next_idx);
if (r->current_idx < next_idx - 1)
......
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