From a5a06a8ecd463ab32129134ed567ef07360eeb6a 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 12ff8ce9da1e..03f042487320 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))) { client *slave = ln->value; + if (slave->replstate == SLAVE_STATE_WAIT_BGSAVE_START) continue; addReply(slave,selectcmd); }