diff options
author | Jan Lindström <jplindst@mariadb.org> | 2014-07-08 21:05:18 +0300 |
---|---|---|
committer | Jan Lindström <jplindst@mariadb.org> | 2014-07-08 21:05:18 +0300 |
commit | e005734058ef0eab76a1f1e2779f60252f8329b9 (patch) | |
tree | f719e46d56d7bd0255baae7625bdf2ebfe4f815b /mysql-test/suite/innodb/r/innodb-stats-initialize-failure.result | |
parent | 086a81986bfa5b1a6c3d0594a1e4017e45d51e42 (diff) | |
download | mariadb-git-e005734058ef0eab76a1f1e2779f60252f8329b9.tar.gz |
MDEV-6424: Mariadb server crashes with assertion failure in file ha_innodb.cc
Analysis: For some reason table stats for a table pointed from a index
is not initialized. Added additional warning output on this situation
and table stats initialization. This is better than asserting.
Diffstat (limited to 'mysql-test/suite/innodb/r/innodb-stats-initialize-failure.result')
-rw-r--r-- | mysql-test/suite/innodb/r/innodb-stats-initialize-failure.result | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/r/innodb-stats-initialize-failure.result b/mysql-test/suite/innodb/r/innodb-stats-initialize-failure.result new file mode 100644 index 00000000000..ef2d3182b92 --- /dev/null +++ b/mysql-test/suite/innodb/r/innodb-stats-initialize-failure.result @@ -0,0 +1,32 @@ +call mtr.add_suppression("InnoDB: Warning: Index.*"); +set DEBUG_DBUG='+d,ib_ha_innodb_stat_not_initialized'; +create table t1(a int not null primary key, b int, c int, key(b), key(c)) engine=innodb; +create procedure innodb_insert_proc (repeat_count int) +begin +declare current_num int; +set current_num = 0; +while current_num < repeat_count do +insert into t1 values(current_num, current_num, current_num); +set current_num = current_num + 1; +end while; +end// +commit; +set autocommit=0; +call innodb_insert_proc(10000); +commit; +set autocommit=1; +select count(1) from t1; +count(1) +10000 +select count(1) from t1 where a between 5 and 100; +count(1) +96 +select count(1) from t1 where b between 5 and 256; +count(1) +252 +select count(1) from t1 where c between 7 and 787; +count(1) +781 +set DEBUG_DBUG=NULL; +drop procedure innodb_insert_proc; +drop table t1; |