Skip to content
Permalink
Browse files
MDEV-30065: mariadb-install-db allow for --enforce-storage-engine=InnoDB
Hide the errors related to missing innodb stats tables in bootstrap mode
on the assumption that because we are in bootstrap mode they are going
to be created.
  • Loading branch information
grooverdan committed Dec 12, 2022
1 parent c1cc6e8 commit 382e85f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
@@ -5646,14 +5646,14 @@ dict_table_schema_check(
/* no such table */

if (innobase_strcasecmp(req_schema->table_name, "mysql/innodb_table_stats") == 0) {
if (innodb_table_stats_not_found_reported == false) {
if (innodb_table_stats_not_found_reported == false && !opt_bootstrap) {
innodb_table_stats_not_found = true;
innodb_table_stats_not_found_reported = true;
} else {
should_print = false;
}
} else if (innobase_strcasecmp(req_schema->table_name, "mysql/innodb_index_stats") == 0 ) {
if (innodb_index_stats_not_found_reported == false) {
if (innodb_index_stats_not_found_reported == false && !opt_bootstrap) {
innodb_index_stats_not_found = true;
innodb_index_stats_not_found_reported = true;
} else {
@@ -3293,7 +3293,8 @@ dict_stats_update(
or is corrupted, calculate the transient stats */

if (innodb_table_stats_not_found == false &&
table->stats_error_printed == false) {
table->stats_error_printed == false &&
!opt_bootstrap) {
ib::error() << "Fetch of persistent statistics"
" requested for table "
<< table->name

0 comments on commit 382e85f

Please sign in to comment.