mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Disconnect timedout slave: regression introduced with diskless repl.
This commit is contained in:
parent
5a526c22cc
commit
f5c6ebbfe3
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user