From ff58d5a380811deb2887b5eed23105de77970ec0 Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Mon, 28 Jul 2014 14:43:30 +0300 Subject: [PATCH] Fail SYNC if background save child aborted due to a signal. --- src/rdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rdb.c b/src/rdb.c index 6d4139af..f3e7e8de 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) { -- GitLab