mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 17:21:20 +00:00
new INFO filed master_link_down_since_seconds
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user