mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-10-24 00:38:27 +00:00
mdbx: minor clean-up tautology in assertion.
This commit is contained in:
parent
1a50aaefdd
commit
8f003022e1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user