mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-10-31 03:29:01 +08:00 
			
		
		
		
	mdbx: add debug to mdbx_kill_page().
				
					
				
			Change-Id: Ifbb3164989a19d8ea48288b4eda1a8bcf31790ff
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user