mdbx: STATIC_ASSERT() для MDBX_TXN_RDONLY_PREPARE.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2023-10-11 12:26:09 +03:00
parent cdbcf54af1
commit fc1685a178

View File

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