mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
MDB_DEBUG tweak for old compilers
This commit is contained in:
parent
c2f15990c7
commit
ef2092eac9
1 changed files with 5 additions and 4 deletions
|
|
@ -3683,15 +3683,16 @@ 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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue