mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Don't send SELECT to slaves in WAIT_BGSAVE_START state.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user