mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 20:34:13 +08:00
mdbx: минорная доработка mdbx_env_create()
.
This commit is contained in:
parent
c17617b816
commit
a95ee8daa3
@ -11669,12 +11669,11 @@ __cold int mdbx_env_create(MDBX_env **penv) {
|
|||||||
env->me_options.dp_loose_limit = 64;
|
env->me_options.dp_loose_limit = 64;
|
||||||
env->me_options.merge_threshold_16dot16_percent = 65536 / 4 /* 25% */;
|
env->me_options.merge_threshold_16dot16_percent = 65536 / 4 /* 25% */;
|
||||||
|
|
||||||
int rc;
|
|
||||||
env->me_os_psize = (unsigned)os_psize;
|
env->me_os_psize = (unsigned)os_psize;
|
||||||
setup_pagesize(env, (env->me_os_psize < MAX_PAGESIZE) ? env->me_os_psize
|
setup_pagesize(env, (env->me_os_psize < MAX_PAGESIZE) ? env->me_os_psize
|
||||||
: MAX_PAGESIZE);
|
: MAX_PAGESIZE);
|
||||||
|
|
||||||
rc = osal_fastmutex_init(&env->me_dbi_lock);
|
int rc = osal_fastmutex_init(&env->me_dbi_lock);
|
||||||
if (unlikely(rc != MDBX_SUCCESS))
|
if (unlikely(rc != MDBX_SUCCESS))
|
||||||
goto bailout;
|
goto bailout;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user