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
redis
Commits
c66bf1fa
Commit
c66bf1fa
authored
Jun 10, 2011
by
antirez
Browse files
correctly set AOF base size field in server structure
parent
d630abcd
Changes
1
Show whitespace changes
Inline
Side-by-side
src/aof.c
View file @
c66bf1fa
...
...
@@ -304,6 +304,7 @@ int loadAppendOnlyFile(char *filename) {
server
.
appendonly
=
appendonly
;
stopLoading
();
aofUpdateCurrentSize
();
server
.
auto_aofrewrite_base_size
=
server
.
appendonly_current_size
;
return
REDIS_OK
;
readerr:
...
...
@@ -689,6 +690,7 @@ void backgroundRewriteDoneHandler(int exitcode, int bysignal) {
server
.
appendseldb
=
-
1
;
/* Make sure it will issue SELECT */
redisLog
(
REDIS_NOTICE
,
"The new append only file was selected for future appends."
);
aofUpdateCurrentSize
();
server
.
auto_aofrewrite_base_size
=
server
.
appendonly_current_size
;
}
else
{
/* If append only is disabled we just generate a dump in this
* format. Why not? */
...
...
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