| 627 | TVector<int> ResultMap; |
| 628 | |
| 629 | void MRCommandComplete(bool isCanceled, TVector<TVector<char>>* res) override { |
| 630 | if (isCanceled) |
| 631 | Parent->Cancel(); |
| 632 | else { |
| 633 | // copy results |
| 634 | Y_ASSERT(ResultMap.ysize() == res->ysize()); |
| 635 | int count = ResultMap.ysize(); |
| 636 | for (int i = 0; i < count; ++i) |
| 637 | Parent->ResultData[ResultMap[i]].swap((*res)[i]); |
| 638 | AtomicAdd(Parent->ActiveOpCount, -1); |
| 639 | |
| 640 | Parent->StartNextBlock(); |
| 641 | } |
| 642 | } |
| 643 | TGUID GetMasterQueryId() override { |
| 644 | return Parent->MasterGuid; |
| 645 | } |
nothing calls this directly
no test coverage detected