summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-08-05 11:23:22 +0200
committerantirez <antirez@gmail.com>2015-08-05 11:23:22 +0200
commita5a06a8ecd463ab32129134ed567ef07360eeb6a (patch)
tree3b28f56fdf5231620dbc4fe7ad775c5009e789b9
parent76e0be416d9ba1a81a91ddda08c0dad6e1c9fbe6 (diff)
downloadredis-a5a06a8ecd463ab32129134ed567ef07360eeb6a.tar.gz
Don't send SELECT to slaves in WAIT_BGSAVE_START state.
-rw-r--r--src/replication.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/replication.c b/src/replication.c
index 12ff8ce9d..03f042487 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);
}