MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / replicationRequestAckFromSlaves

Function replicationRequestAckFromSlaves

src/replication.cpp:4629–4631  ·  view source on GitHub ↗

This just set a flag so that we broadcast a REPLCONF GETACK command * to all the slaves in the beforeSleep() function. Note that this way * we "group" all the clients that want to wait for synchronous replication * in a given event loop iteration, and send a single GETACK for them all. */

Source from the content-addressed store, hash-verified

4627 * we "group" all the clients that want to wait for synchronous replication
4628 * in a given event loop iteration, and send a single GETACK for them all. */
4629void replicationRequestAckFromSlaves(void) {
4630 g_pserver->get_ack_from_slaves = 1;
4631}
4632
4633/* Return the number of slaves that already acknowledged the specified
4634 * replication offset. */

Callers 1

waitCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected