Skip to content

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