| 359 | } |
| 360 | } |
| 361 | void Cancel() { |
| 362 | CHROMIUM_TRACE_FUNCTION(); |
| 363 | // can cancel op if reduce has not started yet |
| 364 | if (AtomicCas(&MapResult, (TMapResultBuffer*)-1, (TMapResultBuffer*)nullptr)) { |
| 365 | PAR_DEBUG_LOG << "MRExec canceled" << Endl; |
| 366 | CancelAllRemoteQueries(); |
| 367 | if (CompleteNotify.Get()) { |
| 368 | CompleteNotify->MRCommandComplete(true, nullptr); |
| 369 | CompleteNotify = nullptr; |
| 370 | } else |
| 371 | Y_ASSERT(0 && "Notify ptr is lost"); |
| 372 | } |
| 373 | } |
| 374 | void ReschedulePartRequest(int partId) { |
| 375 | CHROMIUM_TRACE_FUNCTION(); |
| 376 | TRemoteMapInfo* part = &MapParts[partId]; |
nothing calls this directly
no test coverage detected