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

Method AllocateAndFree

be/src/runtime/bufferpool/buffer-pool-test.cc:240–245  ·  view source on GitHub ↗

Do a temporary test allocation. Return the status of AllocateBuffer().

Source from the content-addressed store, hash-verified

238
239 /// Do a temporary test allocation. Return the status of AllocateBuffer().
240 Status AllocateAndFree(BufferPool* pool, ClientHandle* client, int64_t len) {
241 BufferHandle tmp;
242 RETURN_IF_ERROR(pool->AllocateBuffer(client, len, &tmp));
243 pool->FreeBuffer(client, &tmp);
244 return Status::OK();
245 }
246
247 /// Create pages of varying sizes at most 'max_page_size' that add up to
248 /// 'total_bytes'. Both numbers must be a multiple of the minimum buffer size.

Callers

nothing calls this directly

Calls 3

OKFunction · 0.85
AllocateBufferMethod · 0.45
FreeBufferMethod · 0.45

Tested by

no test coverage detected