From b00e8ea13f7bbfc55bd6396e63caf92de9237267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Tue, 7 Jan 2025 19:34:06 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20`txl=5Fcontain()`?= =?UTF-8?q?=20=D0=B2=20`audit()`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/audit.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/audit.c b/src/audit.c index f5b20f4a..91e18873 100644 --- a/src/audit.c +++ b/src/audit.c @@ -46,11 +46,7 @@ __cold static int audit_ex_locked(MDBX_txn *txn, size_t retired_stored, bool don return MDBX_CORRUPTED; } txnid_t id = unaligned_peek_u64(4, key.iov_base); - if (txn->tw.gc.retxl) { - for (size_t i = 1; i <= MDBX_PNL_GETSIZE(txn->tw.gc.retxl); ++i) - if (id == txn->tw.gc.retxl[i]) - goto skip; - } else if (id <= txn->tw.gc.last_reclaimed) + if (txn->tw.gc.retxl ? txl_contain(txn->tw.gc.retxl, id) : (id <= txn->tw.gc.last_reclaimed)) goto skip; } gc += *(pgno_t *)data.iov_base;