Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
e8509359
Commit
e8509359
authored
Nov 06, 2015
by
Willem Thiart
Browse files
Remove commit loop
parent
3fc7f32b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/raft_server.c
View file @
e8509359
...
@@ -303,8 +303,6 @@ int raft_recv_appendentries(
...
@@ -303,8 +303,6 @@ int raft_recv_appendentries(
{
{
int
last_log_idx
=
max
(
raft_get_current_idx
(
me_
),
1
);
int
last_log_idx
=
max
(
raft_get_current_idx
(
me_
),
1
);
raft_set_commit_idx
(
me_
,
min
(
last_log_idx
,
ae
->
leader_commit
));
raft_set_commit_idx
(
me_
,
min
(
last_log_idx
,
ae
->
leader_commit
));
while
(
0
==
raft_apply_entry
(
me_
))
;
}
}
if
(
raft_is_candidate
(
me_
))
if
(
raft_is_candidate
(
me_
))
...
...
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