mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix main.create_or_replace
Ever since commit9608773f75
we no longer disable innodb_stats_persistent. Ever since commit45a05fda27
updates of the InnoDB persistent statistics are covered by MDL.
This commit is contained in:
@ -353,7 +353,8 @@ drop table test.t1;
|
|||||||
#
|
#
|
||||||
create table t1 (i int);
|
create table t1 (i int);
|
||||||
lock table t1 write;
|
lock table t1 write;
|
||||||
select * from information_schema.metadata_lock_info;
|
select * from information_schema.metadata_lock_info
|
||||||
|
where table_schema!='mysql' or table_name not like 'innodb_%_stats';
|
||||||
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
|
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
|
||||||
# MDL_BACKUP_DDL NULL Backup lock
|
# MDL_BACKUP_DDL NULL Backup lock
|
||||||
# MDL_BACKUP_DML NULL Backup lock
|
# MDL_BACKUP_DML NULL Backup lock
|
||||||
@ -364,7 +365,8 @@ ERROR 22001: Data too long for column 'a' at row 1
|
|||||||
show tables;
|
show tables;
|
||||||
Tables_in_test
|
Tables_in_test
|
||||||
t2
|
t2
|
||||||
select * from information_schema.metadata_lock_info;
|
select * from information_schema.metadata_lock_info
|
||||||
|
where table_schema!='mysql' or table_name not like 'innodb_%_stats';
|
||||||
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
|
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
|
||||||
create table t1 (i int);
|
create table t1 (i int);
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
@ -285,13 +285,15 @@ create table t1 (i int);
|
|||||||
lock table t1 write;
|
lock table t1 write;
|
||||||
--replace_column 1 #
|
--replace_column 1 #
|
||||||
--sorted_result
|
--sorted_result
|
||||||
select * from information_schema.metadata_lock_info;
|
select * from information_schema.metadata_lock_info
|
||||||
|
where table_schema!='mysql' or table_name not like 'innodb_%_stats';
|
||||||
--error ER_DATA_TOO_LONG
|
--error ER_DATA_TOO_LONG
|
||||||
create or replace table t1 (a char(1)) engine=Innodb select 'foo' as a;
|
create or replace table t1 (a char(1)) engine=Innodb select 'foo' as a;
|
||||||
show tables;
|
show tables;
|
||||||
--replace_column 1 #
|
--replace_column 1 #
|
||||||
--sorted_result
|
--sorted_result
|
||||||
select * from information_schema.metadata_lock_info;
|
select * from information_schema.metadata_lock_info
|
||||||
|
where table_schema!='mysql' or table_name not like 'innodb_%_stats';
|
||||||
create table t1 (i int);
|
create table t1 (i int);
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user