MCPcopy Create free account
hub / github.com/apache/impala / TrySaveLargeReadPageReservation

Method TrySaveLargeReadPageReservation

be/src/exec/grouping-aggregator.cc:1091–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089}
1090
1091bool GroupingAggregator::TrySaveLargeReadPageReservation() {
1092 DCHECK_EQ(large_read_page_reservation_.GetReservation(), 0);
1093 int64_t extra_reservation = resource_profile_.max_row_buffer_size
1094 - resource_profile_.spillable_buffer_size;
1095 if (buffer_pool_client()->GetUnusedReservation() >= extra_reservation) {
1096 buffer_pool_client()->SaveReservation(&large_read_page_reservation_,
1097 extra_reservation);
1098 return true;
1099 }
1100 return false;
1101}
1102
1103void GroupingAggregator::RestoreLargeWritePageReservation() {
1104 DCHECK_GT(large_write_page_reservation_.GetReservation(), 0);

Callers

nothing calls this directly

Calls 3

SaveReservationMethod · 0.80
GetReservationMethod · 0.45
GetUnusedReservationMethod · 0.45

Tested by

no test coverage detected