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

Method InitPool

be/src/runtime/bufferpool/suballocator-test.cc:73–77  ·  view source on GitHub ↗

Initialize 'buffer_pool_' and 'global_reservation_' with a limit of 'total_mem' bytes of buffers of minimum length 'min_buffer_len'.

Source from the content-addressed store, hash-verified

71 /// Initialize 'buffer_pool_' and 'global_reservation_' with a limit of 'total_mem'
72 /// bytes of buffers of minimum length 'min_buffer_len'.
73 void InitPool(int64_t min_buffer_len, int total_mem) {
74 global_reservation_.InitRootTracker(nullptr, total_mem);
75 buffer_pool_.reset(
76 new BufferPool(test_env_->metrics(), min_buffer_len, total_mem, 0));
77 }
78
79 /// Register a client with 'buffer_pool_'. The client is automatically deregistered
80 /// and freed at the end of the test.

Callers

nothing calls this directly

Calls 3

InitRootTrackerMethod · 0.80
resetMethod · 0.65
metricsMethod · 0.45

Tested by

no test coverage detected