From dac3fae3b540841ae753bea16f3b353e2124c43d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 8 Sep 2011 10:08:21 -0700 Subject: [PATCH] Fix previous commit --- libraries/libmdb/mdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index ab36f0d..f165288 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -4105,7 +4105,8 @@ newsep: rc = mdb_add_node(mc, j, &rkey, &rdata, pgno, flags); } - if (mc->mc_pg[mc->mc_top] == copy) + /* reset back to original page */ + if (newindx < split_indx) mc->mc_pg[mc->mc_top] = mp; nkeys = NUMKEYS(copy);