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:
Leonid Yuriev 2021-01-29 18:44:26 +03:00
parent 4704e3a966
commit 6cfac546a1

View File

@ -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: