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

Function resetChildState

src/server.cpp:1735–1748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1733}
1734
1735void resetChildState() {
1736 g_pserver->child_type = CHILD_TYPE_NONE;
1737 g_pserver->child_pid = -1;
1738 g_pserver->stat_current_cow_bytes = 0;
1739 g_pserver->stat_current_cow_updated = 0;
1740 g_pserver->stat_current_save_keys_processed = 0;
1741 g_pserver->stat_module_progress = 0;
1742 g_pserver->stat_current_save_keys_total = 0;
1743 updateDictResizePolicy();
1744 closeChildInfoPipe();
1745 moduleFireServerEvent(REDISMODULE_EVENT_FORK_CHILD,
1746 REDISMODULE_SUBEVENT_FORK_CHILD_DIED,
1747 NULL);
1748}
1749
1750/* Return if child type is mutual exclusive with other fork children */
1751int isMutuallyExclusiveChildType(int type) {

Callers 3

checkChildrenDoneFunction · 0.85
TerminateModuleForkChildFunction · 0.85
killAppendOnlyChildFunction · 0.85

Calls 3

updateDictResizePolicyFunction · 0.85
closeChildInfoPipeFunction · 0.85
moduleFireServerEventFunction · 0.85

Tested by

no test coverage detected