correctly set AOF base size field in server structure
This commit is contained in:
parent
d630abcdaf
commit
c66bf1fa32
@ -304,6 +304,7 @@ int loadAppendOnlyFile(char *filename) {
|
|||||||
server.appendonly = appendonly;
|
server.appendonly = appendonly;
|
||||||
stopLoading();
|
stopLoading();
|
||||||
aofUpdateCurrentSize();
|
aofUpdateCurrentSize();
|
||||||
|
server.auto_aofrewrite_base_size = server.appendonly_current_size;
|
||||||
return REDIS_OK;
|
return REDIS_OK;
|
||||||
|
|
||||||
readerr:
|
readerr:
|
||||||
@ -689,6 +690,7 @@ void backgroundRewriteDoneHandler(int exitcode, int bysignal) {
|
|||||||
server.appendseldb = -1; /* Make sure it will issue SELECT */
|
server.appendseldb = -1; /* Make sure it will issue SELECT */
|
||||||
redisLog(REDIS_NOTICE,"The new append only file was selected for future appends.");
|
redisLog(REDIS_NOTICE,"The new append only file was selected for future appends.");
|
||||||
aofUpdateCurrentSize();
|
aofUpdateCurrentSize();
|
||||||
|
server.auto_aofrewrite_base_size = server.appendonly_current_size;
|
||||||
} else {
|
} else {
|
||||||
/* If append only is disabled we just generate a dump in this
|
/* If append only is disabled we just generate a dump in this
|
||||||
* format. Why not? */
|
* format. Why not? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user