From: antirez Date: Fri, 10 Jun 2011 16:13:57 +0000 (+0200) Subject: minor code aesthetic change X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/2c6cc5e502824f1b4e222ebfa1a3fc89f078ae32?ds=sidebyside minor code aesthetic change --- diff --git a/src/rdb.c b/src/rdb.c index d9dac659..a2471aef 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);