mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
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:
parent
25e52257e6
commit
179b395244
1
redis.c
1
redis.c
@ -5582,6 +5582,7 @@ static int syncWithMaster(void) {
|
|||||||
}
|
}
|
||||||
server.master = createClient(fd);
|
server.master = createClient(fd);
|
||||||
server.master->flags |= REDIS_MASTER;
|
server.master->flags |= REDIS_MASTER;
|
||||||
|
server.master->authenticated = 1;
|
||||||
server.replstate = REDIS_REPL_CONNECTED;
|
server.replstate = REDIS_REPL_CONNECTED;
|
||||||
return REDIS_OK;
|
return REDIS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user