mdbx: исправление несущественных предупреждений при MDBX_ENABLE_PROFGC=ON.

Thanks @Alain (reported via https://t.me/libmdbx).
This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2023-10-04 08:13:55 +03:00
parent 7b12e7323f
commit bc6d320bb2

View File

@ -7244,7 +7244,7 @@ bailout:
#if MDBX_ENABLE_PROFGC
size_t majflt_after;
prof->xtime_cpu += osal_cputime(&majflt_after) - cputime_before;
prof->majflt += majflt_after - majflt_before;
prof->majflt += (uint32_t)(majflt_after - majflt_before);
#endif /* MDBX_ENABLE_PROFGC */
return ret;
}
@ -11094,7 +11094,7 @@ bailout:
MDBX_PNL_SETSIZE(txn->tw.relist, 0);
#if MDBX_ENABLE_PROFGC
env->me_lck->mti_pgop_stat.gc_prof.wloops += ctx->loop;
env->me_lck->mti_pgop_stat.gc_prof.wloops += (uint32_t)ctx->loop;
#endif /* MDBX_ENABLE_PROFGC */
TRACE("<<< %zu loops, rc = %d", ctx->loop, rc);
return rc;