| 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_; } |
no test coverage detected