Commit 6818460a authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Fix up placement of root fifo. Addresses #1000, #1080, #1131.

git-svn-id: file:///svn/tokudb.1131b+1080a@6160 c7de825b-a66e-492c-adef-691d508d4ae1
parent 34b4ceec
...@@ -218,8 +218,8 @@ void toku_brtheader_free (struct brt_header *h) { ...@@ -218,8 +218,8 @@ void toku_brtheader_free (struct brt_header *h) {
int toku_brtheader_close (CACHEFILE cachefile, void *header_v) { int toku_brtheader_close (CACHEFILE cachefile, void *header_v) {
struct brt_header *h = header_v; struct brt_header *h = header_v;
printf("%s:%d allocated_limit=%lu writing queue to %lu\n", __FILE__, __LINE__, //printf("%s:%d allocated_limit=%lu writing queue to %lu\n", __FILE__, __LINE__,
block_allocator_allocated_limit(h->block_allocator), h->unused_blocks.b*h->nodesize); // block_allocator_allocated_limit(h->block_allocator), h->unused_blocks.b*h->nodesize);
if (h->dirty) { if (h->dirty) {
toku_serialize_brt_header_to(toku_cachefile_fd(cachefile), h); toku_serialize_brt_header_to(toku_cachefile_fd(cachefile), h);
toku_serialize_fifo_at(toku_cachefile_fd(cachefile), block_allocator_allocated_limit(h->block_allocator), h->fifo); toku_serialize_fifo_at(toku_cachefile_fd(cachefile), block_allocator_allocated_limit(h->block_allocator), h->fifo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment