Do a temporary test allocation. Return the status of AllocateBuffer().
| 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. |
nothing calls this directly
no test coverage detected