mdbx: little more likely/unlikely.

This commit is contained in:
Leonid Yuriev 2021-05-12 19:23:52 +03:00
parent 0875d16656
commit 841fc15dd3

View File

@ -15107,8 +15107,8 @@ new_sub:;
* make sure the cursor is marked valid. */ * make sure the cursor is marked valid. */
mc->mc_flags |= C_INITIALIZED; mc->mc_flags |= C_INITIALIZED;
} }
if (flags & MDBX_MULTIPLE) { if (unlikely(flags & MDBX_MULTIPLE)) {
if (!rc) { if (likely(rc == MDBX_SUCCESS)) {
continue_multiple: continue_multiple:
mcount++; mcount++;
/* let caller know how many succeeded, if any */ /* let caller know how many succeeded, if any */