From: Howard Chu Date: Sun, 6 Sep 2015 18:18:19 +0000 (+0100) Subject: ITS#8237 fix ITS#7589 regression X-Git-Tag: LMDB_0.9.17~105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d84fae3fe31cde7e5ca874280e64d33bd289c261;p=openldap ITS#8237 fix ITS#7589 regression --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 087f19837b..4e93abcad4 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -8167,7 +8167,7 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno psize = 0; if (newindx <= split_indx || newindx >= nkeys) { i = 0; j = 1; - k = newindx >= nkeys ? nkeys : split_indx+2; + k = newindx >= nkeys ? nkeys : split_indx+1+IS_LEAF(mp); } else { i = nkeys; j = -1; k = split_indx-1;