From 0e7fba73b7e63a39fa62f532a289bef92069ba6e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 5 Mar 2014 20:04:42 -0800 Subject: [PATCH] ITS#7815 fix mdb_page_split Was leaving cursor pointed at wrong page if the newindx was in the right sibling page, and the parent was also split. --- libraries/liblmdb/mdb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 5a607a4c7e..4f0081c6fc 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -7857,12 +7857,10 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno */ if (mn.mc_pg[ptop] != mc->mc_pg[ptop] && mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) { - for (i=0; imc_pg[i] = mn.mc_pg[i]; mc->mc_ki[i] = mn.mc_ki[i]; } - mc->mc_pg[ptop] = mn.mc_pg[ptop]; - mc->mc_ki[ptop] = mn.mc_ki[ptop] - 1; } } /* return tmp page to freelist */ -- 2.39.5