mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:18:21 +08:00
mdbx: minor fix likely/unlikely inside mdbx_cursor_del()
.
Change-Id: I86cfc755eef7371ea96c0feb39bffd3ec5298b71
This commit is contained in:
parent
d816e0605b
commit
7fcf11013e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user