X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/cf1eefa4206b23327e38a144d8d20543307fdbe4..c66bf1fa32655ccf3f39b4cd72953459576463f5:/src/rdb.c diff --git a/src/rdb.c b/src/rdb.c index 0d4940d2..d9dac659 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -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");