mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:34:13 +08:00
mdbx: minor fix open-MADV logging.
This commit is contained in:
parent
070ba5ded4
commit
a6340c6b03
@ -10713,8 +10713,8 @@ static int mdbx_sync_locked(MDBX_env *env, unsigned flags,
|
||||
atomic_load32(&env->me_lck->mti_discarded_tail, mo_Relaxed);
|
||||
if (prev_discarded_pgno >=
|
||||
discard_edge_pgno + bytes2pgno(env, madvise_threshold)) {
|
||||
mdbx_notice("open-MADV_%s %u..%u", "DONTNEED", prev_discarded_pgno,
|
||||
largest_pgno);
|
||||
mdbx_notice("open-MADV_%s %u..%u", "DONTNEED", largest_pgno,
|
||||
prev_discarded_pgno);
|
||||
atomic_store32(&env->me_lck->mti_discarded_tail, discard_edge_pgno,
|
||||
mo_Relaxed);
|
||||
const size_t prev_discarded_bytes =
|
||||
|
Loading…
x
Reference in New Issue
Block a user