From 4b8c966140df6df57c47b9a81f7d9f20f8aef34e Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 4 Apr 2012 18:31:37 +0200 Subject: [PATCH] Structure field controlling the INFO field master_link_down_since_seconds initialized correctly to avoid strange INFO output at startup when a slave has yet to connect to its master. --- src/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index dd2b20d9..a387b295 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1084,7 +1084,7 @@ void initServerConfig() { server.repl_syncio_timeout = REDIS_REPL_SYNCIO_TIMEOUT; server.repl_serve_stale_data = 1; server.repl_slave_ro = 1; - server.repl_down_since = -1; + server.repl_down_since = time(NULL); /* Client output buffer limits */ server.client_obuf_limits[REDIS_CLIENT_LIMIT_CLASS_NORMAL].hard_limit_bytes = 0; -- 2.45.2