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:
parent
c1cc6e8496
commit
382e85fe70
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user