mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +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:
parent
4704e3a966
commit
6cfac546a1
@ -20566,7 +20566,7 @@ __cold int mdbx_env_get_option(const MDBX_env *env, const MDBX_option_t option,
|
|||||||
case MDBX_opt_sync_bytes:
|
case MDBX_opt_sync_bytes:
|
||||||
if (unlikely(!env->me_autosync_threshold))
|
if (unlikely(!env->me_autosync_threshold))
|
||||||
return MDBX_EPERM;
|
return MDBX_EPERM;
|
||||||
*value = *env->me_autosync_threshold;
|
*value = pgno2bytes(env, *env->me_autosync_threshold);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MDBX_opt_sync_period:
|
case MDBX_opt_sync_period:
|
||||||
|
Loading…
Reference in New Issue
Block a user