Skip to content

Commit

Permalink
MDEV-20675 Crash in SHOW ENGINE INNODB STATUS with innodb_force_recov…
Browse files Browse the repository at this point in the history
…ery=5

Add a test case. MariaDB Server 10.2 is not affected.
  • Loading branch information
dr-m committed Sep 26, 2019
1 parent 574ff87 commit 23d6754
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mysql-test/suite/innodb/t/innodb_force_recovery.test
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ SET GLOBAL innodb_fast_shutdown = 0;
--echo # Restart the server with innodb_force_recovery as 4.
--let $restart_parameters= --innodb-force-recovery=4
--source include/restart_mysqld.inc
let $status=`SHOW ENGINE INNODB STATUS`;

select * from t1;

Expand Down Expand Up @@ -58,6 +59,7 @@ show tables;
--echo # Restart the server with innodb_force_recovery as 5.
--let $restart_parameters= --innodb-force-recovery=5
--source include/restart_mysqld.inc
let $status=`SHOW ENGINE INNODB STATUS`;

select * from t2;

Expand Down Expand Up @@ -98,6 +100,7 @@ show tables;
--echo # Restart the server with innodb_force_recovery as 6.
--let $restart_parameters= --innodb-force-recovery=6
--source include/restart_mysqld.inc
let $status=`SHOW ENGINE INNODB STATUS`;

select * from t2;

Expand Down Expand Up @@ -135,6 +138,7 @@ show tables;
--echo # Restart the server with innodb_force_recovery=2
--let $restart_parameters= --innodb-force-recovery=2
--source include/restart_mysqld.inc
let $status=`SHOW ENGINE INNODB STATUS`;

select * from t2;
begin;
Expand All @@ -152,6 +156,7 @@ connection default;
--echo # Restart the server with innodb_force_recovery=3
--let $restart_parameters= --innodb-force-recovery=3
--source include/start_mysqld.inc
let $status=`SHOW ENGINE INNODB STATUS`;

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
select * from t2;
Expand Down

0 comments on commit 23d6754

Please sign in to comment.