MCPcopy Create free account
hub / github.com/catboost/catboost / NewRequest

Method NewRequest

library/cpp/par/par_remote.cpp:318–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 }
317
318 void TRemoteQueryProcessor::TInitCmd::NewRequest(TRemoteQueryProcessor* p, TNetworkRequest* req) {
319 CHROMIUM_TRACE_FUNCTION();
320
321 if (!p->BaseSearcherAddrs.empty()) {
322 ERROR_LOG << "Init called twice" << Endl;
323 abort();
324 }
325 THostInitData initData;
326 SerializeFromMem(&req->Data, initData);
327 p->CompId = initData.CompId;
328 p->MasterAddress = initData.MasterAddress;
329 p->BaseSearcherAddrs = initData.BaseSearcherAddrs;
330 p->LastCounts.resize(p->BaseSearcherAddrs.ysize(), TAtomicWrap(0));
331
332 p->SendReply(req->ReqId, nullptr);
333 PAR_DEBUG_LOG << "CompId " << p->CompId << " initialized" << Endl;
334 }
335
336 void TRemoteQueryProcessor::TPingCmd::NewRequest(TRemoteQueryProcessor* p, TNetworkRequest* req) {
337 p->SendReply(req->ReqId, nullptr);

Callers 1

MetaThreadFunctionMethod · 0.45

Calls 12

SerializeFromMemFunction · 0.85
TAtomicWrapClass · 0.85
SerializeToMemFunction · 0.85
SleepFunction · 0.85
SecondsFunction · 0.50
emptyMethod · 0.45
resizeMethod · 0.45
ysizeMethod · 0.45
SendReplyMethod · 0.45
GetMethod · 0.45
ExecMethod · 0.45
SignalMethod · 0.45

Tested by

no test coverage detected