| 83 | } |
| 84 | |
| 85 | int BufferPool::PageHandle::pin_count() const { |
| 86 | DCHECK(is_open()); |
| 87 | // The pin count can only be modified via this PageHandle, which must not be |
| 88 | // concurrently accessed by multiple threads, so it is safe to access without locking |
| 89 | return page_->pin_count; |
| 90 | } |
| 91 | |
| 92 | int64_t BufferPool::PageHandle::len() const { |
| 93 | DCHECK(is_open()); |
no outgoing calls