mdbx: minor clean-up tautology in assertion.

This commit is contained in:
Leonid Yuriev 2025-10-22 00:11:56 +03:00 committed by Леонид Юрьев (Leonid Yuriev)
parent aafe0f0fba
commit 43c4503a77

View File

@ -236,7 +236,7 @@ enum cursor_checking {
MDBX_INTERNAL int __must_check_result cursor_validate(const MDBX_cursor *mc);
MDBX_MAYBE_UNUSED MDBX_NOTHROW_PURE_FUNCTION static inline size_t cursor_dbi(const MDBX_cursor *mc) {
cASSERT(mc, mc->txn && mc->txn->signature == txn_signature);
cASSERT(mc, mc->txn->signature == txn_signature);
size_t dbi = mc->dbi_state - mc->txn->dbi_state;
cASSERT(mc, dbi < mc->txn->env->n_dbi);
return dbi;