Set the master->slave logical client as authenticated on creation, so that if the slave requires a password replication works anyway

This commit is contained in:
antirez 2009-12-13 15:09:46 +01:00
parent 25e52257e6
commit 179b395244

View File

@ -5582,6 +5582,7 @@ static int syncWithMaster(void) {
}
server.master = createClient(fd);
server.master->flags |= REDIS_MASTER;
server.master->authenticated = 1;
server.replstate = REDIS_REPL_CONNECTED;
return REDIS_OK;
}