Commit ef2092ea authored by Howard Chu's avatar Howard Chu
Browse files

MDB_DEBUG tweak for old compilers

parent c2f15990
......@@ -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
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment