Return the lock of the read buffer block.
| 381 | |
| 382 | // Return the lock of the read buffer block. |
| 383 | SpinLock* GetBufferBlockLock(int index) { |
| 384 | DCheckReadBufferIdx(index); |
| 385 | return read_buffer_->read_buffer_blocks_[index]->GetLock(); |
| 386 | } |
| 387 | |
| 388 | // Check if there is an available local memory buffer for the specific offset. |
| 389 | // Caller should hold the physical lock of the disk file in case the object is |