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

Method WaitForBuffer

be/src/runtime/sorter.cc:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79Status Sorter::Page::WaitForBuffer() {
80 DCHECK(handle_.is_pinned());
81 if (data_ != nullptr) return Status::OK();
82 const BufferPool::BufferHandle* page_buffer;
83 RETURN_IF_ERROR(handle_.GetBuffer(&page_buffer));
84 data_ = page_buffer->data();
85 return Status::OK();
86}
87
88Status Sorter::Page::Pin(BufferPool::ClientHandle* client) {
89 DCHECK(!handle_.is_pinned());

Callers 1

GetNextMethod · 0.80

Calls 4

OKFunction · 0.85
is_pinnedMethod · 0.45
GetBufferMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected