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

MDEV-33938 Analyze table on sequences should be prohibited

This commit is contained in:
Monty
2024-04-18 16:29:19 +03:00
committed by Sergei Golubchik
parent 9e7e1f6244
commit ae9a4799d7
3 changed files with 3 additions and 3 deletions

View File

@@ -3268,7 +3268,8 @@ read_statistics_for_tables(THD *thd, TABLE_LIST *tables, bool force_reload)
TABLE_SHARE *table_share;
/* Skip tables that can't have statistics. */
if (tl->is_view_or_derived() || !table || !(table_share= table->s))
if (tl->is_view_or_derived() || !table || !(table_share= table->s) ||
table_share->sequence)
continue;
/* Skip temporary tables */
if (table_share->tmp_table != NO_TMP_TABLE)