MCPcopy Create free account
hub / github.com/F-Stack/f-stack / resetChildState

Function resetChildState

app/redis-6.2.6/src/server.c:1621–1634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1619}
1620
1621void resetChildState() {
1622 server.child_type = CHILD_TYPE_NONE;
1623 server.child_pid = -1;
1624 server.stat_current_cow_bytes = 0;
1625 server.stat_current_cow_updated = 0;
1626 server.stat_current_save_keys_processed = 0;
1627 server.stat_module_progress = 0;
1628 server.stat_current_save_keys_total = 0;
1629 updateDictResizePolicy();
1630 closeChildInfoPipe();
1631 moduleFireServerEvent(REDISMODULE_EVENT_FORK_CHILD,
1632 REDISMODULE_SUBEVENT_FORK_CHILD_DIED,
1633 NULL);
1634}
1635
1636/* Return if child type is mutual exclusive with other fork children */
1637int isMutuallyExclusiveChildType(int type) {

Callers 3

checkChildrenDoneFunction · 0.85
killAppendOnlyChildFunction · 0.85
TerminateModuleForkChildFunction · 0.85

Calls 3

updateDictResizePolicyFunction · 0.85
closeChildInfoPipeFunction · 0.85
moduleFireServerEventFunction · 0.85

Tested by

no test coverage detected