From 2c6cc5e502824f1b4e222ebfa1a3fc89f078ae32 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 10 Jun 2011 18:13:57 +0200 Subject: [PATCH] minor code aesthetic change --- src/rdb.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/rdb.c b/src/rdb.c index d9dac659c..a2471aef6 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -1038,12 +1038,9 @@ void saveCommand(redisClient *c) { 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) { + } else if (rdbSaveBackground(server.dbfilename) == REDIS_OK) { addReplyStatus(c,"Background saving started"); } else { addReply(c,shared.err);