From: Howard Chu Date: Thu, 25 Oct 2012 13:54:09 +0000 (-0700) Subject: Revert "MDB_DEBUG tweak for old compilers" X-Git-Tag: OPENLDAP_REL_ENG_2_4_34~139^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b68aa3f86bf60076088d572c720373337eb6cc75;p=openldap Revert "MDB_DEBUG tweak for old compilers" This reverts commit ef2092eac9f35b77eae250801c96dfa515c6d4b2. --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index fddcc9e12f..091e8ec569 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -3683,16 +3683,15 @@ static void mdb_cursor_pop(MDB_cursor *mc) { if (mc->mc_snum) { +#if MDB_DEBUG + MDB_page *top = mc->mc_pg[mc->mc_top]; +#endif mc->mc_snum--; if (mc->mc_snum) mc->mc_top--; -#if MDB_DEBUG - { - MDB_page *top = mc->mc_pg[mc->mc_top]; + DPRINTF("popped page %zu off db %u cursor %p", top->mp_pgno, mc->mc_dbi, (void *) mc); - } -#endif } }