Commit a398a313 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Make test-recover3.tdb Work. Fixes #537. roll.c coverage is now up to 77.5%...

Make test-recover3.tdb Work.  Fixes #537.  roll.c coverage is now up to 77.5% (from 52.4%).  Addresses #536.

git-svn-id: file:///svn/tokudb@2819 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0ad7b64c
......@@ -227,6 +227,8 @@ void toku_recover_addchild (LSN lsn, FILENUM filenum, DISKOFF diskoff, u_int32_t
assert(node->height>0);
assert(childnum <= (unsigned)node->u.n.n_children);
unsigned int i;
REALLOC_N(node->u.n.n_children+1, node->u.n.childinfos);
REALLOC_N(node->u.n.n_children, node->u.n.childkeys);
for (i=node->u.n.n_children; i>childnum; i--) {
node->u.n.childinfos[i]=node->u.n.childinfos[i-1];
BNC_NBYTESINBUF(node,i) = BNC_NBYTESINBUF(node,i-1);
......
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