Don't send SELECT to slaves in WAIT_BGSAVE_START state.

This commit is contained in:
antirez
2015-08-05 14:00:15 +02:00
parent 7967f1bca6
commit b2ff48ef19
+1
View File
@@ -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);
}