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

Function hasActiveChildProcess

src/server.cpp:1727–1729  ·  view source on GitHub ↗

Return true if there are active children processes doing RDB saving, * AOF rewriting, or some side process spawned by a loaded module. */

Source from the content-addressed store, hash-verified

1725/* Return true if there are active children processes doing RDB saving,
1726 * AOF rewriting, or some side process spawned by a loaded module. */
1727int hasActiveChildProcess() {
1728 return g_pserver->child_pid != -1;
1729}
1730
1731int hasActiveChildProcessOrBGSave() {
1732 return g_pserver->FRdbSaveInProgress() || hasActiveChildProcess();

Callers 9

rdbSaveBackgroundForkFunction · 0.85
bgsaveCommandFunction · 0.85
activeDefragCycleFunction · 0.85
updateDictResizePolicyFunction · 0.85
databasesCronFunction · 0.85
redisForkFunction · 0.85
RM_GetContextFlagsFunction · 0.85
feedAppendOnlyFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected