1source include/have_innodb.inc;
2
3#
4# MDEV-20354 All but last insert ignored in InnoDB tables when table locked
5#
6rename table mysql.table_stats to mysql.table_stats_save;
7flush tables;
8set use_stat_tables= PREFERABLY;
9create table t1 (a int) engine=InnoDB;
10start transaction;
11insert t1 values (1);
12insert t1 values (2);
13commit;
14select * from t1;
15drop table t1;
16rename table mysql.table_stats_save to mysql.table_stats;
17flush tables;
18