Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
9b34fef2
Commit
9b34fef2
authored
Jun 23, 2017
by
Willem Thiart
Browse files
Fix: raft_apply_all error handling
parent
9651a97f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/raft_server.c
View file @
9b34fef2
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment