From fc1685a178044ca2a2ad3b629f77281b133a0545 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: Wed, 11 Oct 2023 12:26:09 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20`STATIC=5FASSERT()`=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20`MDBX=5FTXN=5FRDONLY=5FPREPARE`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core.c b/src/core.c index fec25bed..380ab461 100644 --- a/src/core.c +++ b/src/core.c @@ -8828,6 +8828,7 @@ static int txn_renew(MDBX_txn *txn, const unsigned flags) { r = brs.rslot; } txn->to.reader = r; + STATIC_ASSERT(MDBX_TXN_RDONLY_PREPARE > MDBX_TXN_RDONLY); if (flags & (MDBX_TXN_RDONLY_PREPARE - MDBX_TXN_RDONLY)) { eASSERT(env, txn->mt_txnid == 0); eASSERT(env, txn->mt_owner == 0);