Skip to content

Rename CompactFiles() and CompactRange() in CompactionPickers#13831

Closed
jaykorean wants to merge 1 commit intofacebook:mainfrom
jaykorean:rename_picker_compact_files_and_range
Closed

Rename CompactFiles() and CompactRange() in CompactionPickers#13831
jaykorean wants to merge 1 commit intofacebook:mainfrom
jaykorean:rename_picker_compact_files_and_range

Conversation

@jaykorean
Copy link
Contributor

#Summary

Quick follow-up from #13816: CompactFiles() and CompactRange() in CompactionPickers do not run compaction as their names might suggest. What they actually do is create the Compaction object that will be passed to CompactionJob to run the compaction.

Renaming these two functions to better represent their purposes.

Test Plan

No functional change. Existing CI should be sufficient.

@meta-cla meta-cla bot added the CLA Signed label Aug 4, 2025
@jaykorean jaykorean requested a review from hx235 August 5, 2025 17:57
@jaykorean jaykorean marked this pull request as ready for review August 5, 2025 17:57
@facebook-github-bot
Copy link
Contributor

@jaykorean has imported this pull request. If you are a Meta employee, you can view this in D79660196.

Copy link
Contributor

@hx235 hx235 left a comment

Choose a reason for hiding this comment

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

Thanks - they are now aligned better with CompactionPicker::PickCompaction() for auto compaction.

@facebook-github-bot
Copy link
Contributor

@jaykorean merged this pull request in b6e804b.

@jaykorean jaykorean deleted the rename_picker_compact_files_and_range branch August 5, 2025 21:55
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