forked from facebook/mysql-5.6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix all the cases in MyRocks source code where original return values…
… are lost Summary: Copied from Gunnar: This item tracks the following work: fix all the cases in MyRocks code where the original error code is lost. In practical terms this means going through all the MyRocks source code and fixing this particular error handling pattern. For example: if (delete_table(name)) { DBUG_RETURN(HA_ERR_INTERNAL_ERROR); } becomes int err = delete_table(name); // More expressive, prefer this approach. if (err != HA_EXIT_SUCCESS) { return err; } or int err = delete_table(name); // Less expressive, assume reader thinks by default in UN*X terms. if (err) { return err; } Reviewed By: jkedgar Differential Revision: D4758306
- Loading branch information
1 parent
7b4076a
commit 158028b
Showing
2 changed files
with
60 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters