server.replstate -> server.repl_state

This commit is contained in:
antirez
2011-12-21 12:23:18 +01:00
parent f48cd4b90c
commit 1844f9900f
5 changed files with 28 additions and 28 deletions

View File

@ -519,7 +519,7 @@ void freeClient(redisClient *c) {
/* Case 2: we lost the connection with the master. */
if (c->flags & REDIS_MASTER) {
server.master = NULL;
server.replstate = REDIS_REPL_CONNECT;
server.repl_state = REDIS_REPL_CONNECT;
server.repl_down_since = time(NULL);
/* Since we lost the connection with the master, we should also
* close the connection with all our slaves if we have any, so