mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
minor code aesthetic change
This commit is contained in:
parent
19b46c9a09
commit
2c6cc5e502
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user