From 99e4cf4d841eb3f79f80201567ff9df24676df7c Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 5 Aug 2015 11:23:22 +0200 Subject: [PATCH] Don't send SELECT to slaves in WAIT_BGSAVE_START state. --- src/replication.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/replication.c b/src/replication.c index 1e4524dc..e01447df 100644 --- a/src/replication.c +++ b/src/replication.c @@ -201,6 +201,7 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) { listRewind(slaves,&li); while((ln = listNext(&li))) { redisClient *slave = ln->value; + if (slave->replstate == REDIS_REPL_WAIT_BGSAVE_START) continue; addReply(slave,selectcmd); }