Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin authored Jul 24, 2024
1 parent 0576254 commit 71533de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3648,7 +3648,7 @@ void bgsaveCommand(client *c) {
} else if (c->argc == 2 && !strcasecmp(c->argv[1]->ptr, "cancel")) {
/* Terminates an in progress BGSAVE */
if (server.child_type == CHILD_TYPE_RDB) {
/* There is an ongoing save */
/* There is an ongoing bgsave */
serverLog(LL_NOTICE, "Background saving will be aborted due to user request");
killRDBChild();
addReplyStatus(c, "Background saving cancelled");
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/rdb.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ start_server {} {
wait_for_condition 50 100 {
[s rdb_bgsave_in_progress] == 1
} else {
fail "bgsave not done"
fail "bgsave did not start in time"
}
set fork_child_pid [get_child_pid 0]

Expand Down

0 comments on commit 71533de

Please sign in to comment.