mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
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:
parent
7b6880bdc9
commit
c7ae4ace9d
@ -5361,9 +5361,9 @@ int mdbx_txn_begin(MDBX_env *env, MDBX_txn *parent, unsigned flags,
|
||||
mdbx_free(txn);
|
||||
} else {
|
||||
mdbx_assert(env,
|
||||
(txn->mt_flags &
|
||||
~(MDBX_RDONLY | MDBX_WRITEMAP | MDBX_SHRINK_ALLOWED |
|
||||
MDBX_NOMETASYNC | MDBX_SAFE_NOSYNC | MDBX_MAPASYNC)) == 0);
|
||||
(txn->mt_flags & ~(MDBX_NOTLS | MDBX_RDONLY | MDBX_WRITEMAP |
|
||||
MDBX_SHRINK_ALLOWED | MDBX_NOMETASYNC |
|
||||
MDBX_SAFE_NOSYNC | MDBX_MAPASYNC)) == 0);
|
||||
txn->mt_signature = MDBX_MT_SIGNATURE;
|
||||
*ret = txn;
|
||||
mdbx_debug("begin txn %" PRIaTXN "%c %p on env %p, root page %" PRIaPGNO
|
||||
|
Loading…
Reference in New Issue
Block a user