diff --git a/mysql-test/suite/innodb/r/innodb_defrag_concurrent.result b/mysql-test/suite/innodb/r/innodb_defrag_concurrent.result index 07c96e76213..942c9c94026 100644 --- a/mysql-test/suite/innodb/r/innodb_defrag_concurrent.result +++ b/mysql-test/suite/innodb/r/innodb_defrag_concurrent.result @@ -75,7 +75,7 @@ disconnect con4; optimize table t1; Table Op Msg_type Msg_text test.t1 optimize status OK -check table t1 extended; +check table t1; Table Op Msg_type Msg_text test.t1 check status OK select count(*) from t1; @@ -97,6 +97,7 @@ select count(stat_value) > 0 from mysql.innodb_index_stats where table_name like count(stat_value) > 0 1 drop table t1; +delete from mysql.innodb_index_stats where table_name='t1'; SET GLOBAL innodb_defragment_n_pages = @n_pages; SET GLOBAL innodb_defragment_stats_accuracy = @accuracy; SET GLOBAL innodb_stats_persistent = @sp; diff --git a/mysql-test/suite/innodb/t/innodb_defrag_concurrent.test b/mysql-test/suite/innodb/t/innodb_defrag_concurrent.test index 1e4e14eb7c6..f5b7448032a 100644 --- a/mysql-test/suite/innodb/t/innodb_defrag_concurrent.test +++ b/mysql-test/suite/innodb/t/innodb_defrag_concurrent.test @@ -124,7 +124,7 @@ disconnect con3; disconnect con4; optimize table t1; -check table t1 extended; +check table t1; select count(*) from t1; select count(*) from t1 force index (second); @@ -136,6 +136,7 @@ select count(stat_value) > 0 from mysql.innodb_index_stats where table_name like select count(stat_value) > 0 from mysql.innodb_index_stats where table_name like '%t1%' and stat_name in ('n_leaf_pages_defrag'); drop table t1; +delete from mysql.innodb_index_stats where table_name='t1'; # reset system SET GLOBAL innodb_defragment_n_pages = @n_pages;