Skip to content
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

Environment should have flags and call_with_transaction should use it #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tamuratak
Copy link
Contributor

Hi,
The following code falls in an infinite loop.

require "lmdb"

env = LMDB.new("dir_lmdb")
db = env.database("abc", create: true)
env.close

env = LMDB.new("dir_lmdb", rdonly: true)
db = env.database("abc")

Transaction seems to have to be created with MDB_RDONLY flag under read-only environment.

I have not read the documents and the codes of LMDB. So I am not sure this is a proper solution.

I hope this helping your development.

Regards,

@minad
Copy link
Owner

minad commented May 20, 2015

@vjoel What do you think?

@ms-ati
Copy link

ms-ati commented Aug 18, 2018

@minad is this project alive or dead? <-- genuine question, no value judgement implied, thanks for all work you've done with it!

@minad
Copy link
Owner

minad commented Nov 27, 2019

@ms-ati it has been maintained by @vjoel for some while but now it is unmaintained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants