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
bff410c2
Commit
bff410c2
authored
Dec 31, 2015
by
Willem Thiart
Browse files
Make raft_get_commit_idx public
parent
f6402660
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/raft.h
View file @
bff410c2
...
...
@@ -465,6 +465,10 @@ int raft_get_current_term(raft_server_t* me);
* @return current log index */
int
raft_get_current_idx
(
raft_server_t
*
me
);
/**
* @return commit index */
int
raft_get_commit_idx
(
raft_server_t
*
me_
);
/**
* @return 1 if follower; 0 otherwise */
int
raft_is_follower
(
raft_server_t
*
me
);
...
...
include/raft_private.h
View file @
bff410c2
...
...
@@ -91,8 +91,6 @@ int raft_append_entry(raft_server_t* me_, raft_entry_t* c);
void
raft_set_commit_idx
(
raft_server_t
*
me
,
int
commit_idx
);
int
raft_get_commit_idx
(
raft_server_t
*
me_
);
void
raft_set_last_applied_idx
(
raft_server_t
*
me
,
int
idx
);
void
raft_set_state
(
raft_server_t
*
me_
,
int
state
);
...
...
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