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

Method SaveReservation

be/src/runtime/bufferpool/buffer-pool.cc:357–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357void BufferPool::ClientHandle::SaveReservation(SubReservation* dst, int64_t bytes) {
358 DCHECK(!dst->is_closed());
359 DCHECK_EQ(dst->tracker_->parent(), impl_->reservation());
360 bool success = impl_->reservation()->TransferReservationTo(dst->tracker_.get(), bytes);
361 DCHECK(success); // SubReservation should not have a limit, so this shouldn't fail.
362}
363
364void BufferPool::ClientHandle::RestoreReservation(SubReservation* src, int64_t bytes) {
365 DCHECK(!src->is_closed());

Callers 11

ReserveProbeBuffersMethod · 0.80
PrepareForWriteMethod · 0.80
PrepareForReadWriteMethod · 0.80
NextReadPageMethod · 0.80
UnpinStreamMethod · 0.80
AddLargeRowCustomEndMethod · 0.80
TEST_FFunction · 0.80

Calls 5

getMethod · 0.65
is_closedMethod · 0.45
parentMethod · 0.45
reservationMethod · 0.45
TransferReservationToMethod · 0.45

Tested by 1

TEST_FFunction · 0.64