From 0a359fb62998d54c4c3b44f0d1b243e52640fd72 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 17 Sep 2012 07:02:41 -0700 Subject: [PATCH] More for 48ef27b6f5c804eca6a9d27f8dd2b4ded376f8af page_split with newindex > split_indx --- libraries/libmdb/mdb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.5