From: Howard Chu Date: Mon, 17 Sep 2012 14:02:41 +0000 (-0700) Subject: More for 48ef27b6f5c804eca6a9d27f8dd2b4ded376f8af X-Git-Tag: OPENLDAP_REL_ENG_2_4_33~17^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0a359fb62998d54c4c3b44f0d1b243e52640fd72;p=openldap More for 48ef27b6f5c804eca6a9d27f8dd2b4ded376f8af page_split with newindex > split_indx --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 533ec7b4a8..2c54cbd2e5 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -6128,9 +6128,10 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno psize += NODEDSZ(node); psize += psize & 1; if (psize > pmax) { - if (i >= newindx) + if (i >= newindx) { split_indx = newindx; - else + newpos = 0; + } else split_indx = i+1; break; }