diff --git a/src/buffer_tree.cpp b/src/buffer_tree.cpp index da2d4b3..f340346 100644 --- a/src/buffer_tree.cpp +++ b/src/buffer_tree.cpp @@ -73,7 +73,7 @@ nodes, int workers, bool reset=false) : dir(dir), M(size), B(b), N(nodes) { // create the circular queue in which we will place ripe fruit (full leaves) // make space for full 2 * workers full updates - cq = new CircularQueue(2*workers, 2*M); + cq = new CircularQueue(2*workers, 2*leaf_size); // will want to use mmap instead? - how much is in RAM after allocation (none?) // can't use mmap instead might use it as well. (Still need to create the file to be a given size)