mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-11-01 03:48:57 +08:00 
			
		
		
		
	mdbx: minor fix txn_spill().
				
					
				
			Change-Id: Ic624681d3a9e262b77f761796aabf0231019db72
This commit is contained in:
		| @@ -4814,7 +4814,7 @@ static void mdbx_txn_xkeep(MDBX_txn *txn, MDBX_cursor *m0, | ||||
|  * the child aborted. */ | ||||
| static int mdbx_txn_spill(MDBX_txn *txn, MDBX_cursor *m0, unsigned need) { | ||||
| #ifndef MDBX_DEBUG_SPILLING | ||||
|   if (likely(txn->tw.dirtyroom > need)) | ||||
|   if (likely(txn->tw.dirtyroom >= need)) | ||||
|     return MDBX_SUCCESS; | ||||
|   unsigned spill = need - txn->tw.dirtyroom; | ||||
| #else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user