| 436 | inline bool is_pinned() const { return handle.is_pinned(); } |
| 437 | inline int pin_count() const { return handle.pin_count(); } |
| 438 | Status GetBuffer(const BufferPool::BufferHandle** buffer) { |
| 439 | RETURN_IF_ERROR(handle.GetBuffer(buffer)); |
| 440 | retrieved_buffer.Store(true); |
| 441 | return Status::OK(); |
| 442 | } |
| 443 | |
| 444 | /// Attach the buffer from this page to 'batch'. Only valid to call if the page is |
| 445 | /// pinned and 'retrieved_buffer' is true. Decrements parent->bytes_pinned_. |