| 288 | } |
| 289 | |
| 290 | Status BufferedTupleStream::PinPage(Page* page) { |
| 291 | RETURN_IF_ERROR(buffer_pool_->Pin(buffer_pool_client_, &page->handle)); |
| 292 | bytes_pinned_ += page->len(); |
| 293 | bytes_unpinned_ -= page->len(); |
| 294 | DCHECK_GE(bytes_unpinned_, 0); |
| 295 | return Status::OK(); |
| 296 | } |
| 297 | |
| 298 | int BufferedTupleStream::ExpectedPinCount(bool stream_pinned, const Page* page) const { |
| 299 | DCHECK(!page->attached_to_output_batch); |