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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user