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

Method Close

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

Source from the content-addressed store, hash-verified

408}
409
410void BufferPool::SubReservation::Close() {
411 // Give any reservation back to the client.
412 if (is_closed()) return;
413 bool success =
414 tracker_->TransferReservationTo(tracker_->parent(), tracker_->GetReservation());
415 DCHECK(success); // Transferring reservation to parent shouldn't fail.
416 tracker_->Close();
417 tracker_.reset();
418}
419
420BufferPool::Client::Client(BufferPool* pool, TmpFileGroup* file_group,
421 const string& name, ReservationTracker* parent_reservation, MemTracker* mem_tracker,

Callers 14

TearDownMethod · 0.45
TearDownMethod · 0.45
TEST_FFunction · 0.45
DeregisterClientMethod · 0.45
TearDownMethod · 0.45
TearDownMethod · 0.45
TEST_FFunction · 0.45
TestBufferAllocationMethod · 0.45
TestCleanPageLimitMethod · 0.45
TestEvictionPolicyMethod · 0.45
TestWriteErrorMethod · 0.45

Calls 4

resetMethod · 0.65
TransferReservationToMethod · 0.45
parentMethod · 0.45
GetReservationMethod · 0.45

Tested by 13

TearDownMethod · 0.36
TearDownMethod · 0.36
TEST_FFunction · 0.36
TearDownMethod · 0.36
TearDownMethod · 0.36
TEST_FFunction · 0.36
TestBufferAllocationMethod · 0.36
TestCleanPageLimitMethod · 0.36
TestEvictionPolicyMethod · 0.36
TestWriteErrorMethod · 0.36