From: Howard Chu Date: Thu, 8 Sep 2011 17:08:21 +0000 (-0700) Subject: Fix previous commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dac3fae3b540841ae753bea16f3b353e2124c43d;p=openldap Fix previous commit --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index ab36f0d476..f165288573 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);