mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-11-01 03:48:57 +08:00 
			
		
		
		
	mdbx: fix GC-slot cleanup inside mdbx_update_gc() in extra rare complex cases.
				
					
				
			More for 5f1b684719 and https://github.com/erthink/libmdbx/issues/123
Change-Id: I1b78d6be2babf9ffdd0b77e7b1ee53d1313977bb
			
			
This commit is contained in:
		| @@ -8080,8 +8080,10 @@ retry_noaccount: | ||||
|           goto bailout; | ||||
|  | ||||
|         if (MDBX_PNL_SIZE(txn->tw.lifo_reclaimed)) { | ||||
|           if (need_cleanup) | ||||
|           if (need_cleanup) { | ||||
|             mdbx_txl_sort(txn->tw.lifo_reclaimed); | ||||
|             cleaned_gc_slot = 0; | ||||
|           } | ||||
|           gc_rid = MDBX_PNL_LAST(txn->tw.lifo_reclaimed); | ||||
|         } else { | ||||
|           mdbx_tassert(txn, txn->tw.last_reclaimed == 0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user