Skip to content

Commit

Permalink
Don't send SELECT to slaves in WAIT_BGSAVE_START state.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Aug 5, 2015
1 parent 76e0be4 commit a5a06a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/replication.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit a5a06a8

Please sign in to comment.