Commit 9ab36d5f authored by Rich Prohaska's avatar Rich Prohaska

get brt-test working or fix the nonleaf_split fifo_init bug

git-svn-id: file:///svn/tokudb@1989 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3266e6d2
......@@ -371,9 +371,8 @@ static int brt_nonleaf_split (BRT t, BRTNODE node, BRTNODE *nodea, BRTNODE *node
* The splitter key is key number n_children_in_a */
int i;
for (i=0; i<old_n_children; i++) {
int targchild = i-n_children_in_a; assert(targchild >= 0);
int r = toku_fifo_create(&B->u.n.buffers[targchild]);
for (i=0; i<n_children_in_b; i++) {
int r = toku_fifo_create(&B->u.n.buffers[i]);
if (r!=0) return r;
}
......
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