-
Notifications
You must be signed in to change notification settings - Fork 23
lmdb-safe forbids concurrent reader/writer in same thread #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
horazont
added a commit
to horazont/lmdb-safe
that referenced
this issue
Dec 16, 2019
This is supported by LMDB if the MDB_NOTLS flag is set on the environment, which it always is with lmdb-safe. Fixes ahupowerdns#9.
Martchus
pushed a commit
to Martchus/lmdb-safe
that referenced
this issue
Jan 18, 2022
This is supported by LMDB if the MDB_NOTLS flag is set on the environment, which it always is with lmdb-safe. Fixes ahupowerdns#9.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, lmdb-safe strictly forbids concurrently using a reader and a writer in the same thread:
lmdb-safe/lmdb-safe.cc
Lines 157 to 158 in c0cc016
However, from my reading of the documentation, this is fine to do with LMDB, at least if the environment was opened with MDB_NOTLS (which lmdb-safe does). My tests also indicate that (I simply commented out the
getROTxn
part).Did I overlook anything?
The text was updated successfully, but these errors were encountered: