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
9c758317
Commit
9c758317
authored
Jun 11, 2016
by
Willem Thiart
Browse files
func_node_has_sufficient_logs_f now returns int
parent
36c93559
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/raft.h
View file @
9c758317
...
...
@@ -188,7 +188,7 @@ typedef int (
* @param[in] user_data User data that is passed from Raft server
* @param[in] node The node
* @return 0 does not want to be notified again; otherwise -1 */
typedef
void
(
typedef
int
(
*
func_node_has_sufficient_logs_f
)
(
raft_server_t
*
raft
,
...
...
src/raft_server.c
View file @
9c758317
...
...
@@ -276,8 +276,9 @@ int raft_recv_appendentries_response(raft_server_t* me_,
0
==
raft_node_has_sufficient_logs
(
node
)
)
{
raft_node_set_has_sufficient_logs
(
node
);
me
->
cb
.
node_has_sufficient_logs
(
me_
,
me
->
udata
,
node
);
int
e
=
me
->
cb
.
node_has_sufficient_logs
(
me_
,
me
->
udata
,
node
);
if
(
0
==
e
)
raft_node_set_has_sufficient_logs
(
node
);
}
/* Update commit 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