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
e43607a4
Commit
e43607a4
authored
Sep 27, 2018
by
Yossi Gottlieb
Browse files
Log message incorrect idx when applying entries.
parent
0e755635
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/raft_server.c
View file @
e43607a4
...
...
@@ -824,7 +824,7 @@ int raft_apply_entry(raft_server_t* me_)
return
-
1
;
__log
(
me_
,
NULL
,
"applying log: %d, id: %d size: %d"
,
me
->
last_applied
_idx
,
ety
->
id
,
ety
->
data
.
len
);
log
_idx
,
ety
->
id
,
ety
->
data
.
len
);
me
->
last_applied_idx
++
;
if
(
me
->
cb
.
applylog
)
...
...
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