MCPcopy Create free account
hub / github.com/apache/impala / PinPage

Method PinPage

be/src/runtime/buffered-tuple-stream.cc:290–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290Status 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
298int BufferedTupleStream::ExpectedPinCount(bool stream_pinned, const Page* page) const {
299 DCHECK(!page->attached_to_output_batch);

Callers

nothing calls this directly

Calls 3

OKFunction · 0.85
PinMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected