mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-10-31 03:29:01 +08:00 
			
		
		
		
	mdbx: minor clarify TODO (configurable threshold to keep reserve space for large/overflow pages).
Change-Id: I73a3847852466eb3e34927c5648435c8cf283c0e
This commit is contained in:
		| @@ -14322,10 +14322,10 @@ int mdbx_cursor_put(MDBX_cursor *mc, const MDBX_val *key, MDBX_val *data, | ||||
|  | ||||
|       /* Is the ov page large enough? */ | ||||
|       if (unlikely(mc->mc_flags & C_GCFREEZE) | ||||
|               ? ovpages >= dpages | ||||
|               : ovpages == | ||||
|                     /* LY: add configurable threshold to keep reserve space */ | ||||
|                     dpages) { | ||||
|               ? (ovpages >= dpages) | ||||
|               : (ovpages == | ||||
|                  /* TODO: add configurable threshold to keep reserve space */ | ||||
|                  dpages)) { | ||||
|         if (!IS_DIRTY(omp) && (level || (env->me_flags & MDBX_WRITEMAP))) { | ||||
|           rc2 = mdbx_page_unspill(mc->mc_txn, omp, &omp); | ||||
|           if (unlikely(rc2)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user