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

Move FIFOCompactionPicker to a separate file #4724

Closed
wants to merge 3 commits into from

Conversation

sagar0
Copy link
Contributor

@sagar0 sagar0 commented Nov 28, 2018

Summary:
Simplified the code layout by moving FIFOCompactionPicker to a separate file.
Why?:
While trying to add ttl functionality to universal compaction, I found that FIFOCompactionPicker class and its impl methods to be interspersed between LevelCompactionPicker methods which kind-of made the code a little hard to traverse. So I moved FIFOCompactionPicker to a separate compaction_picker_fifo.h/cc file, similar to UniversalCompactionPicker.

Test Plan:
make check

@sagar0 sagar0 changed the title Move out FIFOCompactionPicker to a separate file Move FIFOCompactionPicker to a separate file Nov 28, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@sagar0 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@riversand963 riversand963 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks to @sagar0 for re-organizing the code.
I left a minor comment.

db/compaction_picker.cc Outdated Show resolved Hide resolved
@facebook-github-bot
Copy link
Contributor

@sagar0 has updated the pull request. Re-import the pull request

@facebook-github-bot
Copy link
Contributor

@sagar0 has updated the pull request. Re-import the pull request

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@sagar0 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@sagar0
Copy link
Contributor Author

sagar0 commented Nov 29, 2018

@riversand963 can you take another look? I updated based on your suggestion.

Copy link
Contributor

@riversand963 riversand963 left a comment

Choose a reason for hiding this comment

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

LGTM again!

yiwu-arbug pushed a commit to tikv/rocksdb that referenced this pull request Jan 16, 2020
Summary:
**Summary:**
Simplified the code layout by moving FIFOCompactionPicker to a separate file.
**Why?:**
While trying to add ttl functionality to universal compaction, I found that `FIFOCompactionPicker` class and its impl methods to be interspersed between `LevelCompactionPicker` methods which kind-of made the code a little hard to traverse. So I moved `FIFOCompactionPicker` to a separate compaction_picker_fifo.h/cc file, similar to `UniversalCompactionPicker`.
Pull Request resolved: facebook#4724

Differential Revision: D13227914

Pulled By: sagar0

fbshipit-source-id: 89471766ea67fa4d87664a41c057dd7df4b3d4e3
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