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

A builder for the Downstairs Downstairs struct. #1152

Merged
merged 4 commits into from
Mar 1, 2024
Merged

Conversation

leftwo
Copy link
Contributor

@leftwo leftwo commented Feb 8, 2024

Made a builder for the Downstairs Downstairs struct.

Removed the build_downstairs_for_region_with_backend() and build_downstairs_for_region()
functions as they are no longer needed.

Updated the downstairs Downstairs struct to have a builder.

Replaced build_downstairs_for_region() and
build_downstairs_for_region_with_backend() with the new builder
pattern.
@leftwo leftwo requested a review from jmpesp February 8, 2024 04:39
write_errors: bool,
flush_errors: bool,
read_only: bool,
encrypted: bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

how do we configure whether or not encryption is used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I guess you can't any more when starting a downstairs.

The region creation itself is where the decision to have or not have encryption is made. When we start a downstairs, the opening of the region will auto-select the encryption state.

If we allow start of a downstairs to pick what encryption it has, all that will end up doing is:
1: Match what the region open finds and move forward.
2: Not match the region open, and exit with error or panic.

Do we need to have this ability in the downstairs run path?

Copy link
Contributor

Choose a reason for hiding this comment

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

Definitely not, ignore my comment!

@leftwo leftwo merged commit fbe6f12 into main Mar 1, 2024
18 checks passed
@leftwo leftwo deleted the alan/downstairs-builder branch March 1, 2024 17:02
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 this pull request may close these issues.

2 participants