mdbx: fix audit for retired-pages tracking (minor, i.e. false-negative).

Change-Id: Ied44bc18efec7178ca5cc5f3324cfc75be24125a
This commit is contained in:
Leonid Yuriev 2019-10-04 12:28:53 +03:00
parent 39d43a5b57
commit 529d484884

View File

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