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

Method PinPageIfNeeded

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

Source from the content-addressed store, hash-verified

301}
302
303Status BufferedTupleStream::PinPageIfNeeded(Page* page, bool stream_pinned) {
304 int new_pin_count = ExpectedPinCount(stream_pinned, page);
305 if (new_pin_count != page->pin_count()) {
306 DCHECK_EQ(new_pin_count, page->pin_count() + 1);
307 RETURN_IF_ERROR(PinPage(page));
308 }
309 return Status::OK();
310}
311
312void BufferedTupleStream::UnpinPageIfNeeded(Page* page, bool stream_pinned) {
313 int new_pin_count = ExpectedPinCount(stream_pinned, page);

Callers

nothing calls this directly

Calls 2

OKFunction · 0.85
pin_countMethod · 0.45

Tested by

no test coverage detected