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

db-synthesizer: relax check whether a dir "looks like a ChainDB" #1221

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

amesgen
Copy link
Member

@amesgen amesgen commented Aug 20, 2024

db-synthesizer has a sanity check when (over)writing a directory to check whether it actually plausibly contains a ChainDB. Previously, this check was only succeeding when the directory would contain exactly three entries named immutable/ledger/volatile. This is somewhat annoying, as ChainDBs usually contain the folder gsm as well as files like clean/lock/protocolMagicId in addition.

This PR relaxes the check, as discussed with @mgmeier: We now only check whether the subdirectories are a subset of immutable/ledger/volatile/gsm, and fail if any other subdirectories are present.

Follow-up to #1206

Copy link
Contributor

@mgmeier mgmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect solution!

@amesgen amesgen added this pull request to the merge queue Aug 20, 2024
Merged via the queue into main with commit 6a8def9 Aug 20, 2024
15 checks passed
@amesgen amesgen deleted the amesgen/db-synthesizer-relax-chaindb-check branch August 20, 2024 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants