mirror of https://mirror.osredm.com/root/redis.git
stop ping when client pause
This commit is contained in:
parent
49816941a4
commit
11f2c6b115
|
@ -2579,7 +2579,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,
|
||||
|
|
Loading…
Reference in New Issue