| 1410 | } |
| 1411 | |
| 1412 | void Sorter::CleanupAllRuns() { |
| 1413 | Run::CleanupRuns(&sorted_inmem_runs_); |
| 1414 | Run::CleanupRuns(&sorted_runs_); |
| 1415 | Run::CleanupRuns(&merging_runs_); |
| 1416 | if (unsorted_run_ != nullptr) unsorted_run_->CloseAllPages(); |
| 1417 | unsorted_run_ = nullptr; |
| 1418 | if (merge_output_run_ != nullptr) merge_output_run_->CloseAllPages(); |
| 1419 | merge_output_run_ = nullptr; |
| 1420 | run_pool_.Clear(); |
| 1421 | } |
| 1422 | |
| 1423 | Status Sorter::SortCurrentInputRun() { |
| 1424 | RETURN_IF_ERROR(unsorted_run_->FinalizeInput()); |
nothing calls this directly
no test coverage detected