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
4c7cfd82
Commit
4c7cfd82
authored
Jan 20, 2016
by
Willem Thiart
Browse files
Make raft_become_leader public
parent
eee32459
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/raft.h
View file @
4c7cfd82
...
...
@@ -616,4 +616,9 @@ int raft_node_is_voting(raft_node_t* me_);
/** Apply all entries up to the commit index */
void
raft_apply_all
(
raft_server_t
*
me_
);
/** Become leader
* WARNING: this is a dangerous function call. It could lead to your cluster
* losing it's consensus guarantees. */
void
raft_become_leader
(
raft_server_t
*
me
);
#endif
/* RAFT_H_ */
include/raft_private.h
View file @
4c7cfd82
...
...
@@ -60,8 +60,6 @@ typedef struct {
void
raft_election_start
(
raft_server_t
*
me
);
void
raft_become_leader
(
raft_server_t
*
me
);
void
raft_become_candidate
(
raft_server_t
*
me
);
void
raft_become_follower
(
raft_server_t
*
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