From: Howard Chu Date: Wed, 21 Mar 2012 00:14:59 +0000 (-0700) Subject: Update overflow page count when freeing overflow page X-Git-Tag: OPENLDAP_REL_ENG_2_4_32~125^2~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25e8e82c5f2ec03e495e237f0c9b4ac6ab739b94;p=openldap Update overflow page count when freeing overflow page --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index b714119c10..25080f3f21 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -5399,6 +5399,7 @@ mdb_cursor_del0(MDB_cursor *mc, MDB_node *leaf) memcpy(&pg, NODEDATA(leaf), sizeof(pg)); ovpages = OVPAGES(NODEDSZ(leaf), mc->mc_txn->mt_env->me_psize); + mc->mc_db->md_overflow_pages -= ovpages; for (i=0; imc_txn->mt_free_pgs, pg);