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

Function disconnectSlaves

src/networking.cpp:1492–1494  ·  view source on GitHub ↗

Close all the slaves connections. This is useful in chained replication * when we resync with our own master and want to force all our slaves to * resync with us as well. */

Source from the content-addressed store, hash-verified

1490 * when we resync with our own master and want to force all our slaves to
1491 * resync with us as well. */
1492void disconnectSlaves(void) {
1493 disconnectSlavesExcept(nullptr);
1494}
1495
1496/* Check if there is any other slave waiting dumping RDB finished expect me.
1497 * This function is useful to judge current dumping RDB can be used for full

Callers 3

replicationAddMasterFunction · 0.85
replicationUnsetMasterFunction · 0.85

Calls 1

disconnectSlavesExceptFunction · 0.85

Tested by

no test coverage detected