diff --git a/src/rdb.c b/src/rdb.c index 6d4139af6c52dccdb5aab147c0774c3d0fbbfaed..f3e7e8debd49154c3ef8642f716f4b0c5932a1ad 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -1221,7 +1221,7 @@ void backgroundSaveDoneHandler(int exitcode, int bysignal) { server.rdb_save_time_start = -1; /* Possibly there are slaves waiting for a BGSAVE in order to be served * (the first stage of SYNC is a bulk transfer of dump.rdb) */ - updateSlavesWaitingBgsave(exitcode == 0 ? REDIS_OK : REDIS_ERR); + updateSlavesWaitingBgsave((!bysignal && exitcode == 0) ? REDIS_OK : REDIS_ERR); } void saveCommand(redisClient *c) {