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
57edf800
Commit
57edf800
authored
Nov 06, 2015
by
Willem Thiart
Browse files
Remove unused branch
parent
476455d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/raft_server.c
View file @
57edf800
...
@@ -246,16 +246,6 @@ int raft_recv_appendentries(
...
@@ -246,16 +246,6 @@ int raft_recv_appendentries(
return
0
;
return
0
;
}
}
#if 0
if (-1 != ae->prev_log_idx &&
ae->prev_log_idx < raft_get_current_idx(me_))
{
__log(me_, "AE prev_idx is less than current idx");
r->success = 0;
return 0;
}
#endif
/* Not the first appendentries we've received */
/* Not the first appendentries we've received */
/* NOTE: the log starts at 1 */
/* NOTE: the log starts at 1 */
if
(
0
<
ae
->
prev_log_idx
)
if
(
0
<
ae
->
prev_log_idx
)
...
...
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