From a6340c6b037e061a74a31ded4d9bee3f93326d48 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 4 Jan 2022 18:33:20 +0300 Subject: [PATCH] mdbx: minor fix open-MADV logging. --- src/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index ce5da831..4df5a3df 100644 --- a/src/core.c +++ b/src/core.c @@ -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 =