2002-09-11 05:40:08 +02:00
|
|
|
# Testing if "flush logs" command bouncing resulting in logs created in a loop
|
|
|
|
# in case of bi-directional replication
|
|
|
|
|
|
|
|
source include/master-slave.inc
|
|
|
|
|
|
|
|
connection slave;
|
2002-09-23 15:34:49 +02:00
|
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
2002-09-11 05:40:08 +02:00
|
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
|
|
master_password='',master_port=$MASTER_MYPORT;
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2002-09-11 05:40:08 +02:00
|
|
|
connection master;
|
2002-10-25 01:46:14 +02:00
|
|
|
stop slave;
|
2002-09-23 15:34:49 +02:00
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
2002-09-11 05:40:08 +02:00
|
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
|
|
master_password='',master_port=$SLAVE_MYPORT;
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2003-07-14 13:59:26 +02:00
|
|
|
sleep 5;
|
2002-09-11 05:40:08 +02:00
|
|
|
flush logs;
|
|
|
|
sleep 5;
|
2002-09-23 15:34:49 +02:00
|
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
2003-10-09 00:06:21 +02:00
|
|
|
--replace_column 33 #
|
2002-09-11 05:40:08 +02:00
|
|
|
show slave status;
|