Initialize 'buffer_pool_' and 'global_reservation_' with a limit of 'total_mem' bytes of buffers of minimum length 'min_buffer_len'.
| 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. |
nothing calls this directly
no test coverage detected