| 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); |
no test coverage detected