mirror of
https://github.com/fluencelabs/redis
synced 2025-03-24 19:40:53 +00:00
Send ACK to master once every second.
ACKs can be also used as a base for synchronous replication. However in that case they'll be explicitly requested by the master when the client sends a request that needs to be replicated synchronously.
This commit is contained in:
parent
efd87031d0
commit
e06a560466
@ -1441,6 +1441,10 @@ void replicationCron(void) {
|
|||||||
redisLog(REDIS_NOTICE,"MASTER <-> SLAVE sync started");
|
redisLog(REDIS_NOTICE,"MASTER <-> SLAVE sync started");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Send ACK to master from time to time. */
|
||||||
|
if (server.masterhost && server.master)
|
||||||
|
replicationSendAck();
|
||||||
|
|
||||||
/* If we have attached slaves, PING them from time to time.
|
/* If we have attached slaves, PING them from time to time.
|
||||||
* So slaves can implement an explicit timeout to masters, and will
|
* So slaves can implement an explicit timeout to masters, and will
|
||||||
|
Loading…
x
Reference in New Issue
Block a user