mirror of
https://github.com/isar/libmdbx.git
synced 2025-11-06 19:08:56 +08:00
mdbx: minor clean-up tautology in assertion.
This commit is contained in:
committed by
Леонид Юрьев (Leonid Yuriev)
parent
aafe0f0fba
commit
43c4503a77
@@ -236,7 +236,7 @@ enum cursor_checking {
|
|||||||
MDBX_INTERNAL int __must_check_result cursor_validate(const MDBX_cursor *mc);
|
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) {
|
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;
|
size_t dbi = mc->dbi_state - mc->txn->dbi_state;
|
||||||
cASSERT(mc, dbi < mc->txn->env->n_dbi);
|
cASSERT(mc, dbi < mc->txn->env->n_dbi);
|
||||||
return dbi;
|
return dbi;
|
||||||
|
|||||||
Reference in New Issue
Block a user