Skip to content

Environment should have flags and call_with_transaction should use it#44

Open
tamuratak wants to merge 2 commits into
minad:masterfrom
tamuratak:env_read_only
Open

Environment should have flags and call_with_transaction should use it#44
tamuratak wants to merge 2 commits into
minad:masterfrom
tamuratak:env_read_only

Conversation

@tamuratak

Copy link
Copy Markdown
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

minad commented May 20, 2015

Copy link
Copy Markdown
Owner

@vjoel What do you think?

@ms-ati

ms-ati commented Aug 18, 2018

Copy link
Copy Markdown

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

@minad

minad commented Nov 27, 2019

Copy link
Copy Markdown
Owner

@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