Incorrect default value in buffer pool

master
Ismael Gomez 7 years ago
parent 0dae08f812
commit 493706eab1

@ -59,7 +59,7 @@ public:
buffer_pool(int capacity_ = -1) buffer_pool(int capacity_ = -1)
{ {
uint32_t nof_buffers = POOL_SIZE; uint32_t nof_buffers = POOL_SIZE;
if (capacity > 0) { if (capacity_ > 0) {
nof_buffers = (uint32_t) capacity_; nof_buffers = (uint32_t) capacity_;
} }
pthread_mutex_init(&mutex, NULL); pthread_mutex_init(&mutex, NULL);

Loading…
Cancel
Save