mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
refs #5671 fix an off-by-one error
git-svn-id: file:///svn/toku/tokudb@50065 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
704131bf4b
commit
346a38e001
1 changed files with 1 additions and 1 deletions
|
@ -1253,7 +1253,7 @@ maybe_merge_pinned_nonleaf_nodes(
|
|||
XREALLOC_N(new_n_children-1, a->childkeys);
|
||||
toku_copy_dbt(&a->childkeys[old_n_children-1], *parent_splitk);
|
||||
a->totalchildkeylens += parent_splitk->size;
|
||||
for (int i = 0; i < b->n_children; ++i) {
|
||||
for (int i = 0; i < b->n_children - 1; ++i) {
|
||||
toku_copy_dbt(&a->childkeys[old_n_children + i], b->childkeys[i]);
|
||||
a->totalchildkeylens += b->childkeys[i].size;
|
||||
toku_init_dbt(&b->childkeys[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue