Commit 09a3da9a authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Make all.recover work again. Addresses #27.

git-svn-id: file:///svn/tokudb@2168 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4abb5ba3
......@@ -243,9 +243,11 @@ void toku_recover_addchild (struct logtype_addchild *le) {
assert(i>=2);
node->u.n.childkeys [i-1] = node->u.n.childkeys [i-2];
}
node->u.n.childinfos[le->childnum].subtree_fingerprint = le->childfingerprint;
BNC_DISKOFF(node, le->childnum) = le->child;
if (le->childnum>0) {
node->u.n.childkeys [le->childnum-1] = 0;
}
BNC_DISKOFF(node, le->childnum) = le->child;
BNC_SUBTREE_FINGERPRINT(node, le->childnum) = le->childfingerprint;
int r= toku_fifo_create(&BNC_BUFFER(node, le->childnum)); assert(r==0);
BNC_NBYTESINBUF(node, le->childnum) = 0;
node->u.n.n_children++;
......
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