From: Howard Chu Date: Wed, 4 Nov 2015 18:11:12 +0000 (+0000) Subject: ITS#8238 fix DUPFIXED page_split X-Git-Tag: LMDB_0.9.17~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17aab561f28676f1dc74d8963492e282039b83af;p=openldap ITS#8238 fix DUPFIXED page_split Parent mc_ki wasn't adjusted if new_indx was > split point --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 8940fdf8be..0bff10e759 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -8298,6 +8298,7 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno rp->mp_upper -= ksize - sizeof(indx_t); mc->mc_ki[mc->mc_top] = x; mc->mc_pg[mc->mc_top] = rp; + mc->mc_ki[ptop]++; } } else { int psize, nsize, k;