mdbx: fix accounting mdbx_ovpage_free().

This commit is contained in:
Leo Yuriev 2018-08-31 01:30:40 +03:00
parent 6ce08100fa
commit 0be592530e

View File

@ -6893,7 +6893,12 @@ static int mdbx_ovpage_free(MDBX_cursor *mc, MDBX_page *mp) {
if (unlikely(rc))
return rc;
}
mc->mc_db->md_overflow_pages -= ovpages;
if (unlikely(mc->mc_flags & C_SUB)) {
MDBX_db *outer = mdbx_outer_db(mc);
outer->md_overflow_pages -= ovpages;
}
return 0;
}