From eddd9b753715765e5315b703ad9d3e3357dd00a9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 4 Nov 2015 18:11:12 +0000 Subject: [PATCH] ITS#8238 fix DUPFIXED page_split Parent mc_ki wasn't adjusted if new_indx was > split point --- libraries/liblmdb/mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 353ff4ac49..317ba5e04e 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -8419,6 +8419,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; -- 2.39.5