mdbx: fix minor Coverity warning.

Change-Id: Id92d85a7032a20a4b06d87878e32d8997b6558e3
This commit is contained in:
Leonid Yuriev 2020-09-22 22:12:00 +03:00
parent 45909eca61
commit d4b16c981d

View File

@ -3994,7 +3994,8 @@ static int mdbx_page_loose(MDBX_txn *txn, MDBX_page *mp) {
mdbx_debug("loosen page %" PRIaPGNO, pgno);
const bool is_dirty = IS_DIRTY(mp);
if (MDBX_DEBUG || unlikely((txn->mt_env->me_flags & MDBX_PAGEPERTURB) != 0)) {
if (MDBX_DEBUG != 0 ||
unlikely((txn->mt_env->me_flags & MDBX_PAGEPERTURB) != 0)) {
mdbx_kill_page(txn->mt_env, mp, pgno, npages);
VALGRIND_MAKE_MEM_UNDEFINED(mp, PAGEHDRSZ);
}