ITS#8237 fix ITS#7589 regression

This commit is contained in:
Howard Chu 2015-09-06 19:18:19 +01:00
parent 7f151b1137
commit d84fae3fe3

View File

@ -8167,7 +8167,7 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
psize = 0; psize = 0;
if (newindx <= split_indx || newindx >= nkeys) { if (newindx <= split_indx || newindx >= nkeys) {
i = 0; j = 1; i = 0; j = 1;
k = newindx >= nkeys ? nkeys : split_indx+2; k = newindx >= nkeys ? nkeys : split_indx+1+IS_LEAF(mp);
} else { } else {
i = nkeys; j = -1; i = nkeys; j = -1;
k = split_indx-1; k = split_indx-1;