Commit 95c6a1a5 authored by antirez's avatar antirez
Browse files

Structure field controlling the INFO field master_link_down_since_seconds...

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.
parent 1fa954a5
......@@ -866,7 +866,7 @@ void initServerConfig() {
server.replstate = REDIS_REPL_NONE;
server.repl_syncio_timeout = REDIS_REPL_SYNCIO_TIMEOUT;
server.repl_serve_stale_data = 1;
server.repl_down_since = -1;
server.repl_down_since = time(NULL);
/* Double constants initialization */
R_Zero = 0.0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment