-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Fix incorrect Status::NoSpace() status check #8504
Conversation
@zhichao-cao has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Looks like it causes the testing issue in db_sst_test-DBSSTTest.DBWithMaxSpaceAllowedRandomized, need to be investigated |
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.
LGTM
Nit: Update HISTORY.md |
8b8ae5e
to
69b07d2
Compare
@zhichao-cao has updated the pull request. You must reimport the pull request before landing. |
@zhichao-cao has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@zhichao-cao merged this pull request in 87e82a4. |
Summary: If we want to check whether a Status s is NoSpace() or not, we should check the subcode instread of using s==Status::NoSpace(). Fix some of the incorrect check in the ErrorHandler. Pull Request resolved: facebook#8504 Test Plan: make check Reviewed By: anand1976 Differential Revision: D29601764 Pulled By: zhichao-cao fbshipit-source-id: cdab56a827891c23746bba9cbb53f169fe35f086
If we want to check whether a Status s is NoSpace() or not, we should check the subcode instread of using s==Status::NoSpace(). Fix some of the incorrect check in the ErrorHandler.
test plan: make check