Unverified Commit 411b9514 authored by Willem's avatar Willem Committed by GitHub
Browse files

Merge pull request #96 from yossigo/fix/debug-log-wrong-idx

Log message incorrect idx when applying entries.
parents 4ddc2738 e43607a4
...@@ -823,7 +823,7 @@ int raft_apply_entry(raft_server_t* me_) ...@@ -823,7 +823,7 @@ int raft_apply_entry(raft_server_t* me_)
return -1; return -1;
__log(me_, NULL, "applying log: %d, id: %d size: %d", __log(me_, NULL, "applying log: %d, id: %d size: %d",
me->last_applied_idx, ety->id, ety->data.len); log_idx, ety->id, ety->data.len);
me->last_applied_idx++; me->last_applied_idx++;
if (me->cb.applylog) if (me->cb.applylog)
......
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