Commit beb1356b authored by antirez's avatar antirez
Browse files

Improve error message in BGSAVE.

parent ae3ef964
...@@ -2590,9 +2590,9 @@ void bgsaveCommand(client *c) { ...@@ -2590,9 +2590,9 @@ void bgsaveCommand(client *c) {
addReplyStatus(c,"Background saving scheduled"); addReplyStatus(c,"Background saving scheduled");
} else { } else {
addReplyError(c, addReplyError(c,
"Another BG operation is in progress: can't BGSAVE right now. " "Another child process is active (AOF?): can't BGSAVE right now. "
"Use BGSAVE SCHEDULE in order to schedule a BGSAVE whenever " "Use BGSAVE SCHEDULE in order to schedule a BGSAVE whenever "
"possible."); "possible.");
} }
} else if (rdbSaveBackground(server.rdb_filename,rsiptr) == C_OK) { } else if (rdbSaveBackground(server.rdb_filename,rsiptr) == C_OK) {
addReplyStatus(c,"Background saving started"); addReplyStatus(c,"Background saving started");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment