| 1619 | } |
| 1620 | |
| 1621 | void 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 */ |
| 1637 | int isMutuallyExclusiveChildType(int type) { |
no test coverage detected