2002-09-11 06:40:08 +03:00
|
|
|
# Testing if "flush logs" command bouncing resulting in logs created in a loop
|
|
|
|
# in case of bi-directional replication
|
2005-12-22 06:39:02 +01:00
|
|
|
-- source include/master-slave.inc
|
2002-09-11 06:40:08 +03:00
|
|
|
|
2005-12-22 06:39:02 +01:00
|
|
|
# This test is dependent on the actual events written to the binary
|
|
|
|
# log. To not break statement-based testing, we only run this test
|
|
|
|
# under statement-based logging.
|
2002-09-11 06:40:08 +03:00
|
|
|
|
|
|
|
connection slave;
|
2005-12-22 06:39:02 +01:00
|
|
|
--disable_warnings
|
2005-07-15 17:51:43 +02:00
|
|
|
stop slave;
|
2005-12-22 06:39:02 +01:00
|
|
|
--enable_warnings
|
2002-09-23 16:34:49 +03:00
|
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
2002-09-11 06:40:08 +03:00
|
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
|
|
master_password='',master_port=$MASTER_MYPORT;
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2002-09-11 06:40:08 +03:00
|
|
|
connection master;
|
2005-12-22 06:39:02 +01:00
|
|
|
--disable_warnings
|
|
|
|
stop slave;
|
|
|
|
--enable_warnings
|
2002-09-23 16:34:49 +03:00
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
2002-09-11 06:40:08 +03:00
|
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
|
|
master_password='',master_port=$SLAVE_MYPORT;
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2003-07-14 14:59:26 +03:00
|
|
|
sleep 5;
|
2002-09-11 06:40:08 +03:00
|
|
|
flush logs;
|
|
|
|
sleep 5;
|
2002-09-23 16:34:49 +03:00
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
2005-12-22 06:39:02 +01:00
|
|
|
--replace_column 1 # 8 # 9 # 16 # 23 # 33 #
|
2002-09-11 06:40:08 +03:00
|
|
|
show slave status;
|