Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
blockstore: atomize slot clearing, relax parent slot meta check #35124
blockstore: atomize slot clearing, relax parent slot meta check #35124
Changes from all commits
42b2668
8c142ba
d0e8b7f
68a02a4
69431c6
a6bcc31
4a95caa
bc0f888
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think it's cleaner encapsulation to pass a
should_purge_special_columns
boolean here, and then have a functionPurgeType::should_should_purge_special_columns() -> bool
method onPurgeType
. This waypurge_slot_cleanup_chaining()
doesn't have to know aboutPurgeType
at allThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the merit of adding the new function
purge_slot_cleanup_chaining()
as this has the unique functionality fromrun_purge_with_stats
. However, I'm not sure I see the benefit of the boolean over the enum; can you elaborate?The enum is part of the public API, so I think it is reasonable to expect someone to know about it. And the
Exact
value of the enum means "go purge the special columns for these slots right now", which is what the boolean would convey.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PurgeType
was designed specifically for therun_purge_with_stats
workflow, so it seemed better to keep it isolated there rather than mixing it with this new clean functionpurge_slot_cleanup_chaining
as a utility function seems like it should just decide which columns to clean. Seems like cramming thePurgeType
in there was too high level.