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

WIP: open rocksdb in rw mode so that old databases can be upgraded #581

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ctb
Copy link
Collaborator

@ctb ctb commented Jan 9, 2025

This PR updates manysearch and fastmultigather so that when searching against a RocksDB, they will automatically upgrade the internal RocksDB format from older versions. This is as simple as opening them in read/write mode instead of read-only mode.

I must admit it gives me the heeby jeebies to open a database in rw mode unnecessarily, but in @luizirber we trust? :) An alternative would be to keep the database in ro mode when searching and have the check command upgrade the database... Thoughts?

Fixes #580

TODO

  • add a test

@bluegenes
Copy link
Contributor

I like the idea of having check update them! Can we output a warning from standard check and then have a flag, --update to go ahead and update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants