mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 23:24:14 +08:00
mdbx: more cursor-checking for audit-without-debug.
This commit is contained in:
parent
9108a241a2
commit
e8dd208e96
@ -16861,7 +16861,6 @@ static void mdbx_node_del(MDBX_cursor *mc, size_t ksize) {
|
|||||||
mdbx_cassert(mc, (size_t)UINT16_MAX - mp->mp_upper >= sz);
|
mdbx_cassert(mc, (size_t)UINT16_MAX - mp->mp_upper >= sz);
|
||||||
mp->mp_upper += (indx_t)sz;
|
mp->mp_upper += (indx_t)sz;
|
||||||
|
|
||||||
#if MDBX_DEBUG > 0
|
|
||||||
if (mdbx_audit_enabled()) {
|
if (mdbx_audit_enabled()) {
|
||||||
const uint8_t checking = mc->mc_checking;
|
const uint8_t checking = mc->mc_checking;
|
||||||
mc->mc_checking |= CC_UPDATING;
|
mc->mc_checking |= CC_UPDATING;
|
||||||
@ -16869,7 +16868,6 @@ static void mdbx_node_del(MDBX_cursor *mc, size_t ksize) {
|
|||||||
mc->mc_checking = checking;
|
mc->mc_checking = checking;
|
||||||
mdbx_cassert(mc, page_check_err == MDBX_SUCCESS);
|
mdbx_cassert(mc, page_check_err == MDBX_SUCCESS);
|
||||||
}
|
}
|
||||||
#endif /* MDBX_DEBUG > 0 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Compact the main page after deleting a node on a subpage.
|
/* Compact the main page after deleting a node on a subpage.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user