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
ef057f60
Commit
ef057f60
authored
Feb 02, 2015
by
Willem Thiart
Browse files
Fixed potentially nasty bug
parent
4fe1e030
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/raft_log.c
View file @
ef057f60
...
...
@@ -54,13 +54,13 @@ static void __ensurecapacity(log_private_t * me)
memcpy
(
&
temp
[
i
],
&
me
->
entries
[
j
],
sizeof
(
raft_entry_t
));
}
/* clean up old entries */
free
(
me
->
entries
);
me
->
size
*=
2
;
me
->
entries
=
temp
;
me
->
front
=
0
;
me
->
back
=
me
->
count
;
/* clean up old entries */
free
(
me
->
entries
);
}
log_t
*
log_new
()
...
...
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