Skip to content

Create intermediate dirs for db-directory and respect schema-dirs in bare mode #2046

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

Merged
merged 3 commits into from
Jan 25, 2022

Conversation

dominiklohmann
Copy link
Member

This is a two-fold fix that came up when reviewing a potential bug with @satta—thanks for the feedback!

📝 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

🎯 Review Instructions

Commit-by-commit.

Running `vast --bare-mode --schema-dirs=... <command>` wrongly caused the schema
dirs to not be read at all.
Before this change, running `vast --db-directory=/a/b/c` failed if `/a` or
`/a/b` did not exist and only tried to create the subdirectory `c`. VAST now
properly creates all intermediate directories as required.
@dominiklohmann dominiklohmann added the bug Incorrect behavior label Jan 25, 2022
@dominiklohmann dominiklohmann requested a review from a team January 25, 2022 13:28
@dominiklohmann dominiklohmann marked this pull request as ready for review January 25, 2022 13:32
@dominiklohmann dominiklohmann merged commit 030dcad into master Jan 25, 2022
@dominiklohmann dominiklohmann deleted the topic/bare-mode-schema-dirs branch January 25, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants