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

Function receiveChildInfo

src/childinfo.cpp:162–175  ·  view source on GitHub ↗

Receive info data from child. */

Source from the content-addressed store, hash-verified

160
161/* Receive info data from child. */
162void receiveChildInfo(void) {
163 if (g_pserver->child_info_pipe[0] == -1) return;
164
165 size_t cow;
166 monotime cow_updated;
167 size_t keys;
168 double progress;
169 childInfoType information_type;
170
171 /* Drain the pipe and update child info so that we get the final message. */
172 while (readChildInfo(&information_type, &cow, &cow_updated, &keys, &progress)) {
173 updateChildInfo(information_type, cow, cow_updated, keys, progress);
174 }
175}

Callers 3

checkChildrenDoneFunction · 0.85
serverCronFunction · 0.85

Calls 2

readChildInfoFunction · 0.85
updateChildInfoFunction · 0.85

Tested by

no test coverage detected