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

[db_iter.cc] Make sure assert(false) handles failures too #7483

Closed
wants to merge 1 commit into from

Conversation

riversand963
Copy link
Contributor

In opt mode, assertions are just no-ops. Therefore, we need to report errors instead of just doing an assert(false).

Test plan:
make check

@riversand963 riversand963 changed the title Make sure assert(false) handles failures too [db_iter.cc] Make sure assert(false) handles failures too Sep 30, 2020
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.

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

Copy link
Contributor

@anand1976 anand1976 left a comment

Choose a reason for hiding this comment

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

LGTM

@riversand963 riversand963 deleted the assert-false-1 branch October 6, 2020 20:54
@facebook-github-bot
Copy link
Contributor

@riversand963 merged this pull request in 1bcef3d.

codingrhythm pushed a commit to SafetyCulture/rocksdb that referenced this pull request Mar 5, 2021
Summary:
In opt mode, assertions are just no-ops. Therefore, we need to report errors instead of just doing an `assert(false)`.

Pull Request resolved: facebook#7483

Test Plan: make check

Reviewed By: anand1976

Differential Revision: D24142725

Pulled By: riversand963

fbshipit-source-id: 5629556dbe29f00dd09e30a7d5df5e6cf09ee435
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