mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-11-01 03:48:57 +08:00 
			
		
		
		
	mdbx: fix mdbx_env_get_option(MDBX_opt_sync_bytes) to return number of bytes instead of pages.
				
					
				
			Change-Id: I815887e82946d9644b05549ec253a52b566c8565
This commit is contained in:
		| @@ -20566,7 +20566,7 @@ __cold int mdbx_env_get_option(const MDBX_env *env, const MDBX_option_t option, | ||||
|   case MDBX_opt_sync_bytes: | ||||
|     if (unlikely(!env->me_autosync_threshold)) | ||||
|       return MDBX_EPERM; | ||||
|     *value = *env->me_autosync_threshold; | ||||
|     *value = pgno2bytes(env, *env->me_autosync_threshold); | ||||
|     break; | ||||
|  | ||||
|   case MDBX_opt_sync_period: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user