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

Method AllocateBuffer

be/src/runtime/bufferpool/buffer-pool.cc:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234Status BufferPool::AllocateBuffer(
235 ClientHandle* client, int64_t len, BufferHandle* handle) {
236 RETURN_IF_ERROR(client->impl_->PrepareToAllocateBuffer(len, true, nullptr));
237 Status status = allocator_->Allocate(client, len, handle);
238 // If the allocation failed, update client's accounting to reflect the failure.
239 if (!status.ok()) client->impl_->FreedBuffer(len);
240 return status;
241}
242
243Status BufferPool::AllocateUnreservedBuffer(
244 ClientHandle* client, int64_t len, BufferHandle* handle) {

Callers 7

AllocateBuffersMethod · 0.45
AllocateAndFreeMethod · 0.45
TestBufferAllocationMethod · 0.45
TEST_FFunction · 0.45
TestWriteErrorMethod · 0.45

Calls 4

FreedBufferMethod · 0.80
AllocateMethod · 0.45
okMethod · 0.45

Tested by 6

AllocateBuffersMethod · 0.36
AllocateAndFreeMethod · 0.36
TestBufferAllocationMethod · 0.36
TEST_FFunction · 0.36
TestWriteErrorMethod · 0.36