Commit 9216a4f6 authored by Marko Mäkelä's avatar Marko Mäkelä

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.
parent 5421e3ae
...@@ -52,5 +52,5 @@ INSERT INTO t1(a) SELECT NULL FROM t1; ...@@ -52,5 +52,5 @@ INSERT INTO t1(a) SELECT NULL FROM t1;
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; SET GLOBAL innodb_flush_log_at_trx_commit=1;
CREATE TABLE u(a SERIAL) ENGINE=INNODB; CREATE TABLE u(a SERIAL) ENGINE=INNODB;
# Kill and restart FLUSH TABLES;
DROP TABLE t,u; DROP TABLE t,u;
...@@ -41,7 +41,11 @@ INSERT INTO t1(a) SELECT NULL FROM t1; ...@@ -41,7 +41,11 @@ INSERT INTO t1(a) SELECT NULL FROM t1;
SET GLOBAL innodb_flush_log_at_trx_commit=1; SET GLOBAL innodb_flush_log_at_trx_commit=1;
CREATE TABLE u(a SERIAL) ENGINE=INNODB; 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 --source include/restart_mysqld.inc
--disable_query_log --disable_query_log
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment