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

remove unused code #3055

Closed
wants to merge 2 commits into from
Closed

remove unused code #3055

wants to merge 2 commits into from

Conversation

ajkr
Copy link
Contributor

@ajkr ajkr commented Oct 20, 2017

fixup 6a541af. This code didn't do anything because (1) bytes_per_sync is assigned in EnvOptions's constructor; and (2) OptimizeForCompactionTableWrite's return value was ignored, even though its only purpose is to return something.

Test Plan: make check -j64

db/db_impl.cc Outdated
@@ -576,8 +576,6 @@ Status DBImpl::SetDBOptions(
immutable_db_options_);
env_options_for_compaction_.bytes_per_sync
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think this is also pointless as it's available in BuildDBOptions...

@facebook-github-bot
Copy link
Contributor

@ajkr has updated the pull request. View: changes

@ajkr ajkr changed the title remove pointless function call remove unused code Oct 20, 2017
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.

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

Copy link
Contributor

@yiwu-arbug yiwu-arbug left a comment

Choose a reason for hiding this comment

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

oops

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.

@ajkr is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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.

None yet

3 participants