Commit b7b991ad authored by Sergei Golubchik's avatar Sergei Golubchik

fix tests to cleanup after themselves

parent 3403f06d
...@@ -608,6 +608,7 @@ use test; ...@@ -608,6 +608,7 @@ use test;
--echo --echo
--echo -------- switch to master ------- --echo -------- switch to master -------
connection master; connection master;
DROP TEMPORARY TABLE mysqltest1.t22;
DROP DATABASE mysqltest1; DROP DATABASE mysqltest1;
# mysqltest2 was alreday DROPPED some tests before. # mysqltest2 was alreday DROPPED some tests before.
DROP DATABASE mysqltest3; DROP DATABASE mysqltest3;
...@@ -84,4 +84,5 @@ SELECT 1; ...@@ -84,4 +84,5 @@ SELECT 1;
# Con1 # Con1
UNLOCK TABLES; UNLOCK TABLES;
# Default # Default
SET DEBUG_SYNC = 'RESET';
DROP TABLE t1, t2; DROP TABLE t1, t2;
...@@ -115,3 +115,4 @@ master-bin.000006 # ...@@ -115,3 +115,4 @@ master-bin.000006 #
DROP TABLE t1, t2; DROP TABLE t1, t2;
SET GLOBAL max_binlog_size= @old_max_binlog_size; SET GLOBAL max_binlog_size= @old_max_binlog_size;
SET GLOBAL innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit; SET GLOBAL innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit;
SET debug_sync = 'reset';
...@@ -143,3 +143,4 @@ INSERT INTO t1 VALUES (31, REPEAT("x", 4100)); ...@@ -143,3 +143,4 @@ INSERT INTO t1 VALUES (31, REPEAT("x", 4100));
DROP TABLE t1, t2; DROP TABLE t1, t2;
SET GLOBAL max_binlog_size= @old_max_binlog_size; SET GLOBAL max_binlog_size= @old_max_binlog_size;
SET GLOBAL innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit; SET GLOBAL innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit;
SET debug_sync = 'reset';
...@@ -1617,6 +1617,7 @@ user ...@@ -1617,6 +1617,7 @@ user
use test; use test;
-------- switch to master ------- -------- switch to master -------
DROP TEMPORARY TABLE mysqltest1.t22;
DROP DATABASE mysqltest1; DROP DATABASE mysqltest1;
DROP DATABASE mysqltest3; DROP DATABASE mysqltest3;
include/rpl_end.inc include/rpl_end.inc
...@@ -66,5 +66,7 @@ a ...@@ -66,5 +66,7 @@ a
9 9
DROP TABLE t1; DROP TABLE t1;
SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode; SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode;
SET debug_sync = "reset";
SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode; SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode;
SET debug_sync = "reset";
include/rpl_end.inc include/rpl_end.inc
...@@ -116,7 +116,9 @@ SET GLOBAL slave_parallel_threads=10; ...@@ -116,7 +116,9 @@ SET GLOBAL slave_parallel_threads=10;
include/start_slave.inc include/start_slave.inc
include/stop_slave.inc include/stop_slave.inc
SET GLOBAL slave_parallel_threads=@old_parallel_threads; SET GLOBAL slave_parallel_threads=@old_parallel_threads;
SET debug_sync = 'reset';
include/start_slave.inc include/start_slave.inc
DROP function foo; DROP function foo;
DROP TABLE t3; DROP TABLE t3;
SET debug_sync = 'reset';
include/rpl_end.inc include/rpl_end.inc
...@@ -130,7 +130,11 @@ SELECT * FROM t1 ORDER BY a; ...@@ -130,7 +130,11 @@ SELECT * FROM t1 ORDER BY a;
--connection server_1 --connection server_1
DROP TABLE t1; DROP TABLE t1;
SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode; SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode;
SET debug_sync = "reset";
--connection server_2 --connection server_2
SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode; SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode;
SET debug_sync = "reset";
--source include/rpl_end.inc --source include/rpl_end.inc
...@@ -190,10 +190,12 @@ SET GLOBAL slave_parallel_threads=10; ...@@ -190,10 +190,12 @@ SET GLOBAL slave_parallel_threads=10;
--connection server_2 --connection server_2
--source include/stop_slave.inc --source include/stop_slave.inc
SET GLOBAL slave_parallel_threads=@old_parallel_threads; SET GLOBAL slave_parallel_threads=@old_parallel_threads;
SET debug_sync = 'reset';
--source include/start_slave.inc --source include/start_slave.inc
--connection server_1 --connection server_1
DROP function foo; DROP function foo;
DROP TABLE t3; DROP TABLE t3;
SET debug_sync = 'reset';
--source include/rpl_end.inc --source include/rpl_end.inc
...@@ -131,5 +131,6 @@ UNLOCK TABLES; ...@@ -131,5 +131,6 @@ UNLOCK TABLES;
--echo # Default --echo # Default
connection default; connection default;
SET DEBUG_SYNC = 'RESET';
DROP TABLE t1, t2; DROP TABLE t1, t2;
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