| 1 |
# MDEV-6424: Mariadb server crashes with assertion failure in file ha_innodb.cc |
| 2 |
--source include/have_innodb.inc |
| 3 |
--source include/no_valgrind_without_big.inc |
| 4 |
|
| 5 |
# DEBUG_SYNC must be compiled in. |
| 6 |
--source include/have_debug_sync.inc |
| 7 |
|
| 8 |
call mtr.add_suppression("InnoDB: Warning: Index.*"); |
| 9 |
# This caused crash earlier |
| 10 |
SET @saved_dbug = @@SESSION.debug_dbug; |
| 11 |
set DEBUG_DBUG='+d,ib_ha_innodb_stat_not_initialized'; |
| 12 |
create table t1(a int not null primary key, b int, c int, key(b), key(c)) engine=innodb; |
| 13 |
|
| 14 |
delimiter //; |
| 15 |
create procedure innodb_insert_proc (repeat_count int) |
| 16 |
begin |
| 17 |
declare current_num int; |
| 18 |
set current_num = 0; |
| 19 |
while current_num < repeat_count do |
| 20 |
insert into t1 values(current_num, current_num, current_num); |
| 21 |
set current_num = current_num + 1; |
| 22 |
end while; |
| 23 |
end// |
| 24 |
delimiter ;// |
| 25 |
commit; |
| 26 |
|
| 27 |
set autocommit=0; |
| 28 |
call innodb_insert_proc(10000); |
| 29 |
commit; |
| 30 |
set autocommit=1; |
| 31 |
|
| 32 |
select count(1) from t1; |
| 33 |
select count(1) from t1 where a between 5 and 100; |
| 34 |
select count(1) from t1 where b between 5 and 256; |
| 35 |
select count(1) from t1 where c between 7 and 787; |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
drop procedure innodb_insert_proc; |
| 40 |
drop table t1; |
| 41 |
SET debug_dbug= @saved_dbug; |