From: Howard Chu Date: Wed, 28 Mar 2012 17:44:18 +0000 (-0700) Subject: Partial revert of prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_32~125^2~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f53beeabee812922b55f0b3a4b82fe2e36ed132d;p=openldap Partial revert of prev commit Sub-DBs were correct before --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 3e0c0e21b3..8c0046c07a 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -4232,7 +4232,6 @@ more: (dkey.mv_size & 1) + (data->mv_size & 1); } mdb_node_del(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top], 0); - mc->mc_db->md_entries--; do_sub = 1; rdata = &xdata; xdata.mv_size = fp->mp_upper; @@ -4307,7 +4306,6 @@ more: mp->mp_ptrs[i] = fp->mp_ptrs[i] + offset; } mdb_node_del(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top], 0); - mc->mc_db->md_entries--; do_sub = 1; goto new_sub; }