mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 17:21:20 +00:00
automatic AOF rewrite first implementation. Still to be tested.
This commit is contained in:
@ -1039,6 +1039,9 @@ void bgsaveCommand(redisClient *c) {
|
||||
if (server.bgsavechildpid != -1 || server.bgsavethread != (pthread_t)-1) {
|
||||
addReplyError(c,"Background save already in progress");
|
||||
return;
|
||||
} else if (server.bgrewritechildpid != -1) {
|
||||
addReplyError(c,"Can't BGSAVE while AOF log rewriting is in progress");
|
||||
return;
|
||||
}
|
||||
if (rdbSaveBackground(server.dbfilename) == REDIS_OK) {
|
||||
addReplyStatus(c,"Background saving started");
|
||||
|
Reference in New Issue
Block a user