mdbx: merge branch master into devel.

Change-Id: I0568e92101e8e3ddf3572c6973542752cd1c235d
This commit is contained in:
Leonid Yuriev
2021-04-26 02:08:03 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -21175,7 +21175,7 @@ __cold int mdbx_env_set_option(MDBX_env *env, const MDBX_option_t option,
case MDBX_opt_txn_dp_initial:
if (unlikely(value > MDBX_PGL_LIMIT || value < CURSOR_STACK * 4))
return MDBX_EINVAL;
if (unlikely(env->me_txn0 == NULL))
if (unlikely(env->me_flags & MDBX_RDONLY))
return MDBX_EACCESS;
if (lock_needed) {
err = mdbx_txn_lock(env, false);