1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Ensuring that master and slave both issue a RESET MASTER and RESET SLAVE

when resetting replication tests.  If not, circular replication setups
will leave cruft in the slaves binary log.

mysql-test/include/master-slave-reset.inc:
  Adding RESET MASTER on slave and RESET SLAVE on master. In order to avoid
  having to re-generate all the replication test result files, I disable the
  query log for the added statements.
mysql-test/suite/rpl/t/rpl_flushlog_loop.test:
  Adding code to clean up after test. Disabling query log for the cleanup code.
This commit is contained in:
Mats Kindahl
2008-07-09 14:34:00 +02:00
parent 9e2abfacf2
commit d034ae598f
2 changed files with 21 additions and 2 deletions

View File

@@ -74,3 +74,9 @@ source include/wait_for_slave_param.inc;
--replace_result $SLAVE_MYPORT SLAVE_PORT $slave_param_value POSITION
--replace_column 1 # 8 # 9 # 16 # 23 # 33 # 34 # 35 #
--query_vertical SHOW SLAVE STATUS
--disable_query_log
connection master;
DROP TABLE t1;
sync_slave_with_master;
--enable_query_log