Commit 78ac9b7f authored by antirez's avatar antirez
Browse files

Disconnect timedout slave: regression introduced with diskless repl.

parent 75e68625
...@@ -2003,8 +2003,9 @@ void replicationCron(void) { ...@@ -2003,8 +2003,9 @@ void replicationCron(void) {
if (slave->flags & REDIS_PRE_PSYNC) continue; if (slave->flags & REDIS_PRE_PSYNC) continue;
if ((server.unixtime - slave->repl_ack_time) > server.repl_timeout) if ((server.unixtime - slave->repl_ack_time) > server.repl_timeout)
{ {
redisLog(REDIS_WARNING, "Disconnecting timedout slave: %s", redisLog(REDIS_WARNING, "Disconnecting timedout slave: %s",
replicationGetSlaveName(slave)); replicationGetSlaveName(slave));
freeClient(slave);
} }
} }
} }
......
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