mdbx: more unlikely().

This commit is contained in:
Leonid Yuriev 2021-12-30 19:40:22 +03:00
parent ae5df65af0
commit 9511bc491a

View File

@ -14396,7 +14396,7 @@ int mdbx_cursor_get(MDBX_cursor *mc, MDBX_val *key, MDBX_val *data,
return MDBX_ENODATA;
MDBX_page *mp = mc->mc_pg[mc->mc_top];
const unsigned nkeys = page_numkeys(mp);
if (mc->mc_ki[mc->mc_top] >= nkeys) {
if (unlikely(mc->mc_ki[mc->mc_top] >= nkeys)) {
mdbx_cassert(mc, nkeys <= UINT16_MAX);
if (mc->mc_flags & C_EOF)
return MDBX_ENODATA;