mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
remove few obscure, unused, or misused mtr features
This commit is contained in:
19
mysql-test/suite/innodb/include/restart_and_reinit.inc
Normal file
19
mysql-test/suite/innodb/include/restart_and_reinit.inc
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# few innodb tests depend on innodb tablespace being completelty clean and new
|
||||
#
|
||||
# this file deletes old innodb files and restarts mysqld
|
||||
#
|
||||
|
||||
let $_server_id= `SELECT @@server_id`;
|
||||
let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect;
|
||||
let $datadir= `SELECT @@datadir`;
|
||||
exec echo "wait" > $_expect_file_name;
|
||||
shutdown_server 10; # give it 10 seconds to die
|
||||
remove_file $datadir/ib_logfile0;
|
||||
remove_file $datadir/ib_logfile1;
|
||||
remove_file $datadir/ibdata1;
|
||||
exec echo "restart" > $_expect_file_name;
|
||||
enable_reconnect;
|
||||
source include/wait_until_connected_again.inc;
|
||||
disable_reconnect;
|
||||
|
Reference in New Issue
Block a user