Fix failure to respect masterauth issue #26
Former-commit-id: a69b4e79db46f629da94c4a1172ea9b1c68dff35
This commit is contained in:
parent
9e714b477f
commit
3af27e0d24
@ -2256,13 +2256,22 @@ void createSharedObjects(void) {
|
||||
|
||||
void initMasterInfo(redisMaster *master)
|
||||
{
|
||||
master->masterauth = NULL;
|
||||
master->masterhost = NULL;
|
||||
if (server.default_masterauth)
|
||||
master->masterauth = zstrdup(server.default_masterauth);
|
||||
else
|
||||
master->masterauth = NULL;
|
||||
|
||||
if (server.default_masteruser)
|
||||
master->masteruser = zstrdup(server.default_masteruser);
|
||||
else
|
||||
master->masteruser = NULL;
|
||||
|
||||
master->masterport = 6379;
|
||||
master->master = NULL;
|
||||
master->cached_master = NULL;
|
||||
master->master_initial_offset = -1;
|
||||
|
||||
|
||||
master->repl_state = REPL_STATE_NONE;
|
||||
master->repl_down_since = 0; /* Never connected, repl is down since EVER. */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user