mirror of
https://github.com/MariaDB/server.git
synced 2025-05-31 08:42:45 +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:
parent
5421e3aee7
commit
9216a4f69f
@ -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;
|
|||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user