minor code aesthetic change

This commit is contained in:
antirez 2011-06-10 18:13:57 +02:00
parent 19b46c9a09
commit 2c6cc5e502

View File

@ -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);