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
9651a97f
Commit
9651a97f
authored
Jun 22, 2017
by
Willem Thiart
Browse files
Fixes #41
Second if statement was redundant.
parent
883d0d24
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/raft_server.c
View file @
9651a97f
...
...
@@ -243,10 +243,6 @@ int raft_recv_appendentries_response(raft_server_t* me_,
else
if
(
me
->
current_term
!=
r
->
term
)
return
0
;
/* stop processing, this is a node we don't have in our configuration */
if
(
!
node
)
return
0
;
if
(
0
==
r
->
success
)
{
/* If AppendEntries fails because of log inconsistency:
...
...
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