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

open the same db in read only mode #811

Open
GopherJ opened this issue May 22, 2024 · 3 comments
Open

open the same db in read only mode #811

GopherJ opened this issue May 22, 2024 · 3 comments

Comments

@GopherJ
Copy link

GopherJ commented May 22, 2024

Error: Database already open. Cannot acquire lock.

I have one process which does read & write, another process which does read

@GopherJ
Copy link
Author

GopherJ commented May 22, 2024

rocksdb allows to open in readonly mode

@GopherJ GopherJ changed the title open the same db in different process open the same db in read only mode May 23, 2024
@lhallam
Copy link

lhallam commented May 23, 2024

See #678

@GopherJ
Copy link
Author

GopherJ commented May 29, 2024

rocksdb read only mode cannot sync with the write, secondary db instance doesn't work well either, if we cannot find a very useful and elegant solution, then I think we can abandon this

the whole point is to have 1 R/W + n R instances and the n read instances can sync well with the write

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

2 participants