Don't send SELECT to slaves in WAIT_BGSAVE_START state.

This commit is contained in:
antirez 2015-08-05 11:23:22 +02:00
parent 76e0be416d
commit a5a06a8ecd

View File

@ -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);
}