mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-06-18 14:08:52 +00:00
mdbx: исправление несущественных предупреждений при MDBX_ENABLE_PROFGC=ON
.
Thanks @Alain (reported via https://t.me/libmdbx).
This commit is contained in:
parent
7b12e7323f
commit
bc6d320bb2
@ -7244,7 +7244,7 @@ bailout:
|
|||||||
#if MDBX_ENABLE_PROFGC
|
#if MDBX_ENABLE_PROFGC
|
||||||
size_t majflt_after;
|
size_t majflt_after;
|
||||||
prof->xtime_cpu += osal_cputime(&majflt_after) - cputime_before;
|
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 */
|
#endif /* MDBX_ENABLE_PROFGC */
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -11094,7 +11094,7 @@ bailout:
|
|||||||
|
|
||||||
MDBX_PNL_SETSIZE(txn->tw.relist, 0);
|
MDBX_PNL_SETSIZE(txn->tw.relist, 0);
|
||||||
#if MDBX_ENABLE_PROFGC
|
#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 */
|
#endif /* MDBX_ENABLE_PROFGC */
|
||||||
TRACE("<<< %zu loops, rc = %d", ctx->loop, rc);
|
TRACE("<<< %zu loops, rc = %d", ctx->loop, rc);
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user