mdbx: fix assertion inside mdbx_txn_begin().

Change-Id: I0184c094e0f1fdc1a3ed9aede803cbfc2595ff05
This commit is contained in:
Leonid Yuriev 2019-10-03 14:04:37 +03:00
parent 5420a3b2fb
commit bf818ddf1e

View File

@ -4109,8 +4109,9 @@ int mdbx_txn_begin(MDBX_env *env, MDBX_txn *parent, unsigned flags,
if (txn != env->me_txn0) if (txn != env->me_txn0)
mdbx_free(txn); mdbx_free(txn);
} else { } else {
mdbx_assert(env, (txn->mt_flags & ~(MDBX_RDONLY | MDBX_WRITEMAP | mdbx_assert(env, (txn->mt_flags &
MDBX_SHRINK_ALLOWED)) == 0); ~(MDBX_RDONLY | MDBX_WRITEMAP | MDBX_SHRINK_ALLOWED |
MDBX_NOMETASYNC | MDBX_NOSYNC | MDBX_MAPASYNC)) == 0);
txn->mt_signature = MDBX_MT_SIGNATURE; txn->mt_signature = MDBX_MT_SIGNATURE;
*ret = txn; *ret = txn;
mdbx_debug("begin txn %" PRIaTXN "%c %p on env %p, root page %" PRIaPGNO mdbx_debug("begin txn %" PRIaTXN "%c %p on env %p, root page %" PRIaPGNO