From 47beba1782452dae7f398a10a58dfb825bdab117 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sat, 22 Jun 2019 21:09:07 +0300 Subject: [PATCH] mdbx: more 'unlikely'. Change-Id: I472e4a922590cd4680a48416611cfd894fa120db --- src/mdbx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mdbx.c b/src/mdbx.c index be4c66b7..c32a5d74 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -7283,14 +7283,14 @@ static int mdbx_ovpage_free(MDBX_cursor *mc, MDBX_page *mp) { mdbx_cassert(mc, a > MDBX_PNL_SIZE(env->me_reclaimed_pglist) || env->me_reclaimed_pglist[a] != pg); if (a <= MDBX_PNL_SIZE(env->me_reclaimed_pglist) && - env->me_reclaimed_pglist[a] == pg) + unlikely(env->me_reclaimed_pglist[a] == pg)) return MDBX_PROBLEM; if (ovpages > 1) { const unsigned b = mdbx_pnl_search(env->me_reclaimed_pglist, pg + ovpages - 1); mdbx_cassert(mc, a == b); - if (a != b) + if (unlikely(a != b)) return MDBX_PROBLEM; } }