1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Repeatable test case in mysql-test format for flush-logs problem with

bi-directional replication. No result file provided as there is no good
one known :)
This commit is contained in:
peter@mysql.com
2002-09-05 01:36:49 +04:00
parent 516cc0bd61
commit 672e4ba78d
5 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1 @@
--server_id=1 --log-bin

View File

@ -0,0 +1,5 @@
rm -f $MYSQL_TEST_DIR/var/slave-data/*-bin.*
rm -f $MYSQL_TEST_DIR/var/slave-data/master.info
rm -f $MYSQL_TEST_DIR/var/slave-data/*.index

View File

@ -0,0 +1 @@
--server_id=2 --log-bin

View File

@ -0,0 +1,4 @@
rm -f $MYSQL_TEST_DIR/var/master-data/master.info
rm -f $MYSQL_TEST_DIR/var/master-data/*-bin.*
rm -f $MYSQL_TEST_DIR/var/master-data/*.index

View File

@ -0,0 +1,19 @@
# 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;
eval change master to master_host='127.0.0.1',master_user='root',
master_password='',master_port=$MASTER_MYPORT;
slave start;
connection master;
slave stop;
eval change master to master_host='127.0.0.1',master_user='root',
master_password='',master_port=$SLAVE_MYPORT;
slave start;
flush logs;
sleep 5;
show slave status;