mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
Make all.recover work again. Addresses #27.
git-svn-id: file:///svn/tokudb@2168 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
4abb5ba31d
commit
09a3da9a49
1 changed files with 4 additions and 2 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue