Commit 4b8c9661 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 5ad1faa0
...@@ -1084,7 +1084,7 @@ void initServerConfig() { ...@@ -1084,7 +1084,7 @@ void initServerConfig() {
server.repl_syncio_timeout = REDIS_REPL_SYNCIO_TIMEOUT; server.repl_syncio_timeout = REDIS_REPL_SYNCIO_TIMEOUT;
server.repl_serve_stale_data = 1; server.repl_serve_stale_data = 1;
server.repl_slave_ro = 1; server.repl_slave_ro = 1;
server.repl_down_since = -1; server.repl_down_since = time(NULL);
/* Client output buffer limits */ /* Client output buffer limits */
server.client_obuf_limits[REDIS_CLIENT_LIMIT_CLASS_NORMAL].hard_limit_bytes = 0; server.client_obuf_limits[REDIS_CLIENT_LIMIT_CLASS_NORMAL].hard_limit_bytes = 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