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

Problem: memiavl db is not protected against multi-processing opening #1055

Closed
Tracked by #870
yihuang opened this issue Jun 1, 2023 · 0 comments · Fixed by #1100
Closed
Tracked by #870

Problem: memiavl db is not protected against multi-processing opening #1055

yihuang opened this issue Jun 1, 2023 · 0 comments · Fixed by #1100

Comments

@yihuang
Copy link
Collaborator

yihuang commented Jun 1, 2023

Use filelocks to control multi-process concurrency.

Similar to lmdb's lock file:

  • make sure only single writer to the db.
  • record the oldest snapshot used by concurrent readers, so we won't prune snapshots that's still accessed by reader.
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 a pull request may close this issue.

1 participant