mdbx: minor fix likely/unlikely inside mdbx_cursor_del().

Change-Id: I86cfc755eef7371ea96c0feb39bffd3ec5298b71
This commit is contained in:
Leonid Yuriev 2021-02-10 02:36:47 +03:00
parent d816e0605b
commit 7fcf11013e

View File

@ -14608,8 +14608,8 @@ int mdbx_cursor_del(MDBX_cursor *mc, MDBX_put_flags_t flags) {
if (unlikely(mc->mc_ki[mc->mc_top] >= page_numkeys(mc->mc_pg[mc->mc_top])))
return MDBX_NOTFOUND;
if (unlikely(!(flags & MDBX_NOSPILL) &&
(rc = mdbx_cursor_spill(mc, NULL, NULL))))
if (likely((flags & MDBX_NOSPILL) == 0) &&
unlikely(rc = mdbx_cursor_spill(mc, NULL, NULL)))
return rc;
rc = mdbx_cursor_touch(mc);