mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 19:34:13 +08:00
mdbx: more unlikely()
.
This commit is contained in:
parent
ae5df65af0
commit
9511bc491a
@ -14396,7 +14396,7 @@ int mdbx_cursor_get(MDBX_cursor *mc, MDBX_val *key, MDBX_val *data,
|
|||||||
return MDBX_ENODATA;
|
return MDBX_ENODATA;
|
||||||
MDBX_page *mp = mc->mc_pg[mc->mc_top];
|
MDBX_page *mp = mc->mc_pg[mc->mc_top];
|
||||||
const unsigned nkeys = page_numkeys(mp);
|
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);
|
mdbx_cassert(mc, nkeys <= UINT16_MAX);
|
||||||
if (mc->mc_flags & C_EOF)
|
if (mc->mc_flags & C_EOF)
|
||||||
return MDBX_ENODATA;
|
return MDBX_ENODATA;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user