mdbx: fix assertion for MDBX_NOTLS option.

This fixes https://github.com/leo-yuriev/libmdbx/issues/72

Change-Id: I9e2b02e33e7e702eb093c0c1049c54b76d8d23b5
This commit is contained in:
Leonid Yuriev 2019-12-28 02:17:35 +03:00
parent 7b6880bdc9
commit c7ae4ace9d

View File

@ -5361,9 +5361,9 @@ int mdbx_txn_begin(MDBX_env *env, MDBX_txn *parent, unsigned flags,
mdbx_free(txn); mdbx_free(txn);
} else { } else {
mdbx_assert(env, mdbx_assert(env,
(txn->mt_flags & (txn->mt_flags & ~(MDBX_NOTLS | MDBX_RDONLY | MDBX_WRITEMAP |
~(MDBX_RDONLY | MDBX_WRITEMAP | MDBX_SHRINK_ALLOWED | MDBX_SHRINK_ALLOWED | MDBX_NOMETASYNC |
MDBX_NOMETASYNC | MDBX_SAFE_NOSYNC | MDBX_MAPASYNC)) == 0); MDBX_SAFE_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