Skip to content

Commit

Permalink
add log msg for bgsave schedule
Browse files Browse the repository at this point in the history
Signed-off-by: Ran Shidlansik <[email protected]>
  • Loading branch information
ranshid committed Jul 28, 2024
1 parent 71533de commit 55a1541
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3674,6 +3674,11 @@ void bgsaveCommand(client *c) {
} else if (hasActiveChildProcess() || server.in_exec) {
if (schedule || server.in_exec) {
server.rdb_bgsave_scheduled = 1;
if (schedule) {
serverLog(LL_NOTICE, "Background saving scheduled due to user request");
} else {
serverLog(LL_NOTICE, "Background saving scheduled to run after transaction execution");
}
addReplyStatus(c, "Background saving scheduled");
} else {
addReplyError(c, "Another child process is active (AOF?): can't BGSAVE right now. "
Expand Down

0 comments on commit 55a1541

Please sign in to comment.