1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Give warnings if open_stat_table_for_ddl() fails

The warning is given in case of table not found or if there is a lock
timeout. The warning is needed as in case of a lock timeout then the
persistent table stats are going to be wrong.
This commit is contained in:
Monty
2023-09-24 14:40:29 +03:00
parent 684f7f81a0
commit 4c8d2410b6
4 changed files with 21 additions and 4 deletions

View File

@ -2,6 +2,9 @@ create table t1 (a int);
alter table mysql.column_stats rename to mysql.column_stats1;
flush tables;
alter table t1 change a b varchar(100);
Warnings:
Warning 1177 Got error 1146 when trying to open statistics table `table_stats` for updating statistics
Warning 1177 Got error 1146 when trying to open statistics table `table_stats` for updating statistics
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (