Commit dafa5e8d authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1577 Don't forget about buffers in memarena when one buffer gets full

git-svn-id: file:///svn/toku/tokudb@10499 c7de825b-a66e-492c-adef-691d508d4ae1
parent 37cbcf40
...@@ -52,6 +52,7 @@ void* malloc_in_memarena (MEMARENA ma, size_t size) { ...@@ -52,6 +52,7 @@ void* malloc_in_memarena (MEMARENA ma, size_t size) {
assert(ma->other_bufs); assert(ma->other_bufs);
ma->other_bufs[old_n]=ma->buf; ma->other_bufs[old_n]=ma->buf;
ma->n_other_bufs = old_n+1; ma->n_other_bufs = old_n+1;
ma->size_of_other_bufs += ma->buf_size;
} }
// Make a new one // Make a new one
{ {
......
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