From 529d4848841c39f4f6866e3db508e77db6ae09e4 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 4 Oct 2019 12:28:53 +0300 Subject: [PATCH] mdbx: fix audit for retired-pages tracking (minor, i.e. false-negative). Change-Id: Ied44bc18efec7178ca5cc5f3324cfc75be24125a --- src/elements/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elements/core.c b/src/elements/core.c index 8da58836..67d5aa7b 100644 --- a/src/elements/core.c +++ b/src/elements/core.c @@ -5606,7 +5606,7 @@ int mdbx_txn_commit(MDBX_txn *txn) { env->me_reclaimed_pglist = NULL; if (mdbx_audit_enabled()) { - rc = mdbx_audit(txn, 0); + rc = mdbx_audit(txn, MDBX_PNL_SIZE(txn->mt_retired_pages)); if (unlikely(rc != MDBX_SUCCESS)) goto fail; }