mirror of
https://github.com/fluencelabs/redis
synced 2025-04-29 12:32:14 +00:00
Don't send SELECT to slaves in WAIT_BGSAVE_START state.
This commit is contained in:
parent
1dccb6cffb
commit
99e4cf4d84
@ -201,6 +201,7 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
|
|||||||
listRewind(slaves,&li);
|
listRewind(slaves,&li);
|
||||||
while((ln = listNext(&li))) {
|
while((ln = listNext(&li))) {
|
||||||
redisClient *slave = ln->value;
|
redisClient *slave = ln->value;
|
||||||
|
if (slave->replstate == REDIS_REPL_WAIT_BGSAVE_START) continue;
|
||||||
addReply(slave,selectcmd);
|
addReply(slave,selectcmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user