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; }