mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 00:31:21 +00:00
Merge pull request #576 from saj/fix-slave-ping-period
Bug fix: slaves being pinged every second
This commit is contained in:
@ -744,7 +744,7 @@ void replicationCron(void) {
|
||||
* So slaves can implement an explicit timeout to masters, and will
|
||||
* be able to detect a link disconnection even if the TCP connection
|
||||
* will not actually go down. */
|
||||
if (!(server.cronloops % (server.repl_ping_slave_period*10))) {
|
||||
if (!(server.cronloops % (server.repl_ping_slave_period * REDIS_HZ))) {
|
||||
listIter li;
|
||||
listNode *ln;
|
||||
|
||||
|
Reference in New Issue
Block a user