1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Optimize checking if a table is a statistics table

This commit is contained in:
Monty
2024-01-04 20:44:38 +02:00
committed by Sergei Golubchik
parent a00e99acca
commit ab513b007b
6 changed files with 65 additions and 37 deletions

View File

@@ -3300,7 +3300,7 @@ read_statistics_for_tables(THD *thd, TABLE_LIST *tables, bool force_reload)
statistics_for_tables_is_needed= true;
}
}
else if (is_stat_table(tl->db, tl->alias))
else if (table_share->table_category == TABLE_CATEGORY_STATISTICS)
found_stat_table= true;
}