提交 179b3952 编写于 作者: A antirez

Set the master->slave logical client as authenticated on creation, so that if...

Set the master->slave logical client as authenticated on creation, so that if the slave requires a password replication works anyway
上级 25e52257
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册