mirror of
https://github.com/isar/libmdbx.git
synced 2025-02-07 19:49:35 +08:00
mdbx: minor fix assertion check inside page_retire_ex()
(backport).
This commit is contained in:
parent
db9e2c6f07
commit
bdcc345455
@ -4835,7 +4835,8 @@ static int mdbx_page_retire_ex(MDBX_cursor *mc, const pgno_t pgno,
|
|||||||
rc = mdbx_page_get(mc, pgno, &check, txn->mt_front);
|
rc = mdbx_page_get(mc, pgno, &check, txn->mt_front);
|
||||||
if (unlikely(rc != MDBX_SUCCESS))
|
if (unlikely(rc != MDBX_SUCCESS))
|
||||||
return rc;
|
return rc;
|
||||||
mdbx_tassert(txn, (PAGETYPE(check) & ~P_LEAF2) == (pagetype & ~P_FROZEN));
|
mdbx_tassert(txn, (PAGETYPE(check) & ~(P_LEAF2 | P_SPILLED)) ==
|
||||||
|
(pagetype & ~(P_LEAF2 | P_FROZEN)));
|
||||||
mdbx_tassert(txn, !(pagetype & P_FROZEN) || IS_FROZEN(txn, check));
|
mdbx_tassert(txn, !(pagetype & P_FROZEN) || IS_FROZEN(txn, check));
|
||||||
}
|
}
|
||||||
if (pagetype & P_FROZEN) {
|
if (pagetype & P_FROZEN) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user