From: Howard Chu Date: Fri, 1 Nov 2013 00:31:15 +0000 (-0700) Subject: ITS#7589 another mdb_page_split fix X-Git-Tag: OPENLDAP_REL_ENG_2_4_38~24^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=34459e05856619e8647ef95c865d5c766f275ed7;p=openldap ITS#7589 another mdb_page_split fix Tweak split_indx check, go one slot further. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 9ade333ed9..b419fd6cda 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -7542,7 +7542,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+1; + k = newindx >= nkeys ? nkeys : split_indx+2; } else { i = nkeys; j = -1; k = split_indx-1;