new INFO filed master_link_down_since_seconds

This commit is contained in:
antirez
2011-06-17 16:13:22 +02:00
parent 591f29e0f5
commit 07486df6fe
3 changed files with 9 additions and 0 deletions

View File

@ -522,6 +522,7 @@ void freeClient(redisClient *c) {
if (c->flags & REDIS_MASTER) {
server.master = NULL;
server.replstate = 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
* when we'll resync with the master the other slaves will sync again