mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 18:14:12 +08:00
mdbx: add debug to mdbx_kill_page()
.
Change-Id: Ifbb3164989a19d8ea48288b4eda1a8bcf31790ff
This commit is contained in:
parent
56758372cf
commit
266bb70b7d
@ -4035,6 +4035,8 @@ static bool mdbx_refund(MDBX_txn *txn) {
|
||||
|
||||
static __cold void mdbx_kill_page(MDBX_env *env, MDBX_page *mp, pgno_t pgno,
|
||||
unsigned npages) {
|
||||
mdbx_debug("kill%s %u page %" PRIaPGNO, IS_DIRTY(mp) ? " dirty" : "", npages,
|
||||
pgno);
|
||||
mdbx_assert(env, pgno >= NUM_METAS && npages);
|
||||
if (IS_DIRTY(mp) || (env->me_flags & MDBX_WRITEMAP)) {
|
||||
const size_t bytes = pgno2bytes(env, npages);
|
||||
|
Loading…
x
Reference in New Issue
Block a user