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

Is it support one process to read/write but the other process to only read? #92

Open
Mxxim opened this issue Feb 23, 2017 · 0 comments
Open

Comments

@Mxxim
Copy link

Mxxim commented Feb 23, 2017

Is it support one process to read/write but the other process to only read?

DB db = factory.open(new File("/Users/sammy/Workspace/node1/build/leveldb8001"), options);

When I do it(while the other process is opening the database to read/write), there is an error like this:

org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: lock /Users/sammy/Workspace/node1/build/leveldb8001/LOCK: Resource temporarily unavailable

If leveldb may only be opened by one process at a time, how can I make the other process read it?

Thanks for your attention!!

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

No branches or pull requests

1 participant