1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00

Make the test innodb.recovery_shutdown more robust

Before killing the server, we have to FLUSH TABLES in order to
prevent the corruption of any MyISAM system tables.
This commit is contained in:
Marko Mäkelä 2018-02-08 13:26:44 +02:00
parent 5421e3aee7
commit 9216a4f69f
2 changed files with 6 additions and 2 deletions

View File

@ -52,5 +52,5 @@ INSERT INTO t1(a) SELECT NULL FROM t1;
INSERT INTO t1(a) SELECT NULL FROM t1;
SET GLOBAL innodb_flush_log_at_trx_commit=1;
CREATE TABLE u(a SERIAL) ENGINE=INNODB;
# Kill and restart
FLUSH TABLES;
DROP TABLE t,u;

View File

@ -41,7 +41,11 @@ INSERT INTO t1(a) SELECT NULL FROM t1;
SET GLOBAL innodb_flush_log_at_trx_commit=1;
CREATE TABLE u(a SERIAL) ENGINE=INNODB;
--source include/kill_and_restart_mysqld.inc
FLUSH TABLES;
--let $shutdown_timeout=0
--source include/restart_mysqld.inc
--let $shutdown_timeout=60
--source include/restart_mysqld.inc
--disable_query_log