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

Method TrySaveLargeWritePageReservation

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

Source from the content-addressed store, hash-verified

1076}
1077
1078bool GroupingAggregator::TrySaveLargeWritePageReservation() {
1079 DCHECK_EQ(large_write_page_reservation_.GetReservation(), 0);
1080 int64_t extra_reservation = resource_profile_.max_row_buffer_size
1081 - resource_profile_.spillable_buffer_size;
1082 if (extra_reservation > 0
1083 && buffer_pool_client()->GetUnusedReservation() >= extra_reservation) {
1084 buffer_pool_client()->SaveReservation(&large_write_page_reservation_,
1085 extra_reservation);
1086 return true;
1087 }
1088 return false;
1089}
1090
1091bool GroupingAggregator::TrySaveLargeReadPageReservation() {
1092 DCHECK_EQ(large_read_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