]> git.sur5r.net Git - openldap/commitdiff
Partial revert of prev commit
authorHoward Chu <hyc@symas.com>
Wed, 28 Mar 2012 17:44:18 +0000 (10:44 -0700)
committerHoward Chu <hyc@symas.com>
Wed, 28 Mar 2012 17:44:18 +0000 (10:44 -0700)
Sub-DBs were correct before

libraries/libmdb/mdb.c

index 3e0c0e21b35fe51260ea21b5b6d2610550971555..8c0046c07a8311c8983a6b1c353ecf9abb0d28f8 100644 (file)
@@ -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;
                        }