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
RedisLabs Raft
Commits
ef596320
Commit
ef596320
authored
Apr 25, 2018
by
Yossi Gottlieb
Browse files
Fix off-by-one in apply_log idx.
parent
af95e333
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/raft_server.c
View file @
ef596320
...
...
@@ -794,7 +794,7 @@ int raft_apply_entry(raft_server_t* me_)
me
->
last_applied_idx
++
;
if
(
me
->
cb
.
applylog
)
{
int
e
=
me
->
cb
.
applylog
(
me_
,
me
->
udata
,
ety
,
me
->
last_applied_idx
-
1
);
int
e
=
me
->
cb
.
applylog
(
me_
,
me
->
udata
,
ety
,
me
->
last_applied_idx
);
if
(
RAFT_ERR_SHUTDOWN
==
e
)
return
RAFT_ERR_SHUTDOWN
;
}
...
...
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