mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 19:24:13 +08:00
mdbx: STATIC_ASSERT()
для MDBX_TXN_RDONLY_PREPARE
.
This commit is contained in:
parent
cdbcf54af1
commit
fc1685a178
@ -8828,6 +8828,7 @@ static int txn_renew(MDBX_txn *txn, const unsigned flags) {
|
|||||||
r = brs.rslot;
|
r = brs.rslot;
|
||||||
}
|
}
|
||||||
txn->to.reader = r;
|
txn->to.reader = r;
|
||||||
|
STATIC_ASSERT(MDBX_TXN_RDONLY_PREPARE > MDBX_TXN_RDONLY);
|
||||||
if (flags & (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_txnid == 0);
|
||||||
eASSERT(env, txn->mt_owner == 0);
|
eASSERT(env, txn->mt_owner == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user