We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b8a2c commit cb364a7Copy full SHA for cb364a7
storage/innobase/dict/dict0stats.cc
@@ -514,15 +514,17 @@ static bool dict_stats_persistent_storage_check(bool dict_already_locked)
514
dict_sys.unlock();
515
}
516
517
- if (ret != DB_SUCCESS && ret != DB_STATS_DO_NOT_EXIST) {
518
- ib::error() << errstr;
519
- return(false);
520
- } else if (ret == DB_STATS_DO_NOT_EXIST) {
+ switch (ret) {
+ case DB_SUCCESS:
+ return true;
+ default:
521
+ if (!opt_bootstrap) {
522
+ ib::error() << errstr;
523
+ }
524
+ /* fall through */
525
+ case DB_STATS_DO_NOT_EXIST:
526
return false;
527
- /* else */
-
- return(true);
528
529
530
/** Executes a given SQL statement using the InnoDB internal SQL parser.
0 commit comments