Commit 4a812a91 authored by Rich Prohaska's avatar Rich Prohaska

another small mempool. addresses #632

git-svn-id: file:///svn/tokudb@3238 c7de825b-a66e-492c-adef-691d508d4ae1
parent d6ea35af
...@@ -380,9 +380,10 @@ int toku_deserialize_brtnode_from (int fd, DISKOFF off, BRTNODE *brtnode, unsign ...@@ -380,9 +380,10 @@ int toku_deserialize_brtnode_from (int fd, DISKOFF off, BRTNODE *brtnode, unsign
} }
//printf("%s:%d r PMA= %p\n", __FILE__, __LINE__, result->u.l.buffer); //printf("%s:%d r PMA= %p\n", __FILE__, __LINE__, result->u.l.buffer);
{ {
void *mp = toku_malloc(nodesize); int mpsize = nodesize + nodesize/4;
if (mp==0) return ENOMEM; void *mp = toku_malloc(mpsize);
toku_mempool_init(&result->u.l.buffer_mempool, mp, nodesize); if (mp==0) return ENOMEM; // TODO cleanup
toku_mempool_init(&result->u.l.buffer_mempool, mp, mpsize);
} }
u_int32_t actual_sum = 0; u_int32_t actual_sum = 0;
......
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