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

Method DeleteReadBuffer

be/src/runtime/io/disk-file.h:468–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466 // read buffer block, because Delete() will hold the read buffer block's lock.
467 template <typename T>
468 void DeleteReadBuffer(
469 MemBlock* read_buffer_block, bool* reserved, bool* alloc, const T& file_lock) {
470 DCHECK(file_lock.mutex() == &physical_file_lock_ && file_lock.owns_lock());
471 DCHECK(read_buffer_block != nullptr);
472 return read_buffer_block->Delete(reserved, alloc);
473 }
474
475 // Return the number of read buffer blocks of this DiskFile.
476 int64_t num_of_read_buffers() { return read_buffer_->num_of_read_buffer_blocks_; }

Callers 1

TryDeleteReadBufferMethod · 0.80

Calls 3

owns_lockMethod · 0.80
mutexMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected