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
34c6ab25
Commit
34c6ab25
authored
Sep 12, 2015
by
Willem Thiart
Browse files
Define raft_add_peer
parent
c82269b3
Changes
1
Show whitespace changes
Inline
Side-by-side
include/raft.h
View file @
34c6ab25
...
@@ -333,6 +333,8 @@ __attribute__ ((deprecated));
...
@@ -333,6 +333,8 @@ __attribute__ ((deprecated));
* @return 0 on success; otherwise -1 */
* @return 0 on success; otherwise -1 */
int
raft_add_node
(
raft_server_t
*
me
,
void
*
user_data
,
int
is_self
);
int
raft_add_node
(
raft_server_t
*
me
,
void
*
user_data
,
int
is_self
);
#define raft_add_peer raft_add_node
/** Set election timeout.
/** Set election timeout.
* The amount of time that needs to elapse before we assume the leader is down
* The amount of time that needs to elapse before we assume the leader is down
* @param[in] msec Election timeout in milliseconds */
* @param[in] msec Election timeout in milliseconds */
...
...
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