mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
62f72d3610
added variables relay_log, relay_log_index, relay_log_info_file to init_vars[] to make them visible within SHOW VARIABLES mysql-test/r/rpl_flush_log_loop.result: test result mysql-test/t/rpl_flush_log_loop.test: test case sql/set_var.cc: added variables relay_log, relay_log_index, relay_log_info_file to init_vars[] to make them visible within SHOW VARIABLES
27 lines
780 B
Text
27 lines
780 B
Text
# Testing if "flush logs" command bouncing resulting in logs created in a loop
|
|
# in case of bi-directional replication
|
|
|
|
source include/master-slave.inc;
|
|
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
show variables like 'relay_log%';
|
|
|
|
connection slave;
|
|
stop slave;
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
master_password='',master_port=$MASTER_MYPORT;
|
|
start slave;
|
|
connection master;
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
master_password='',master_port=$SLAVE_MYPORT;
|
|
start slave;
|
|
sleep 5;
|
|
flush logs;
|
|
sleep 5;
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
|
show slave status;
|
|
|
|
# End of 4.1 tests
|