| 39 | namespace impala { |
| 40 | |
| 41 | InitialReservations::InitialReservations(ObjectPool* obj_pool, |
| 42 | ReservationTracker* query_reservation, MemTracker* query_mem_tracker, |
| 43 | int64_t initial_reservation_total_claims) |
| 44 | : initial_reservation_mem_tracker_(obj_pool->Add( |
| 45 | new MemTracker(-1, "Unclaimed reservations", query_mem_tracker, false))), |
| 46 | remaining_initial_reservation_claims_(initial_reservation_total_claims) { |
| 47 | // Soft mem_limits should not apply to the initial reservation because we don't want |
| 48 | // to fail the query in the case where the initial reservation exceeds the soft |
| 49 | // limit. |
| 50 | initial_reservations_.InitChildTracker(nullptr, query_reservation, |
| 51 | initial_reservation_mem_tracker_, numeric_limits<int64_t>::max(), MemLimit::HARD); |
| 52 | } |
| 53 | |
| 54 | Status InitialReservations::Init( |
| 55 | const TUniqueId& query_id, int64_t query_min_reservation) { |
nothing calls this directly
no test coverage detected