mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:34:13 +08: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
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user