Commit 9b34fef2 authored by Willem Thiart's avatar Willem Thiart
Browse files

Fix: raft_apply_all error handling

parent 9651a97f
...@@ -909,8 +909,8 @@ int raft_apply_all(raft_server_t* me_) ...@@ -909,8 +909,8 @@ int raft_apply_all(raft_server_t* me_)
while (raft_get_last_applied_idx(me_) < raft_get_commit_idx(me_)) while (raft_get_last_applied_idx(me_) < raft_get_commit_idx(me_))
{ {
int e = raft_apply_entry(me_); int e = raft_apply_entry(me_);
if (RAFT_ERR_SHUTDOWN == e) if (0 != e)
return RAFT_ERR_SHUTDOWN; return e;
} }
return 0; return 0;
......
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