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

Method ReturnReservationFromScannerThread

be/src/exec/hdfs-scan-node.cc:245–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void HdfsScanNode::ReturnReservationFromScannerThread(
246 const unique_lock<timed_mutex>& lock, int64_t bytes) {
247 DCHECK(lock.mutex() == &lock_ && lock.owns_lock());
248 // Release as much memory as possible. Must hold onto the minimum reservation, though.
249 Status status = buffer_pool_client()->DecreaseReservationTo(
250 bytes, resource_profile_.min_reservation);
251 DCHECK(status.ok()) << "Not possible, scans don't unpin pages" << status.GetDetail();
252 DCHECK_GE(buffer_pool_client()->GetReservation(), resource_profile_.min_reservation);
253}
254
255void HdfsScanNode::ThreadTokenAvailableCb(ThreadResourcePool* pool) {
256 // This is called to start up new scanner threads. It's not a big deal if we

Callers

nothing calls this directly

Calls 6

owns_lockMethod · 0.80
DecreaseReservationToMethod · 0.80
GetDetailMethod · 0.80
mutexMethod · 0.45
okMethod · 0.45
GetReservationMethod · 0.45

Tested by

no test coverage detected