Merge pull request #6029 from chendq8/clientpause

fix cluster failover time out
This commit is contained in:
Salvatore Sanfilippo 2019-05-15 12:03:19 +02:00 committed by GitHub
commit caf74e507e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2601,7 +2601,7 @@ void replicationCron(void) {
/* First, send PING according to ping_slave_period. */
if ((replication_cron_loops % server.repl_ping_slave_period) == 0 &&
listLength(server.slaves))
listLength(server.slaves) && !clientsArePaused())
{
ping_argv[0] = createStringObject("PING",4);
replicationFeedSlaves(server.slaves, server.slaveseldb,