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.
This commit is contained in:
Daniel Black 2022-11-22 13:47:14 +11:00
parent c1cc6e8496
commit 382e85fe70
2 changed files with 4 additions and 3 deletions

View File

@ -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 {

View File

@ -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