mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
d27196b43b
mysql-test/suite/rpl/r/rpl_start_stop_slave.result: updated result mysql-test/suite/rpl/t/rpl_critical_errors.test: replace --sleep mysql-test/suite/rpl/t/rpl_err_ignoredtable.test: replace --sleep mysql-test/suite/rpl/t/rpl_init_slave.test: remove --sleep mysql-test/suite/rpl/t/rpl_insert.test: replace --sleep mysql-test/suite/rpl/t/rpl_loadfile.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_sp001.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_sp005.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_stop_middle.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_trig001.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_trig003.test: replace --sleep mysql-test/suite/rpl/t/rpl_ssl1.test: replace --sleep mysql-test/suite/rpl/t/rpl_start_stop_slave.test: replace --sleep mysql-test/suite/rpl/t/rpl_switch_stm_row_mixed.test: replace --sleep mysql-test/suite/rpl/t/rpl_temporary.test: replace --sleep
33 lines
726 B
Text
33 lines
726 B
Text
source include/master-slave.inc;
|
|
|
|
#
|
|
# Test of init_slave variable
|
|
#
|
|
|
|
save_master_pos;
|
|
connection slave;
|
|
show variables like 'init_slave';
|
|
show variables like 'max_connections';
|
|
sync_with_master;
|
|
reset master;
|
|
connection master;
|
|
show variables like 'init_slave';
|
|
show variables like 'max_connections';
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
# Save variable value
|
|
set @my_global_init_connect= @@global.init_connect;
|
|
set global init_connect="set @c=1";
|
|
show variables like 'init_connect';
|
|
connection master;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
stop slave;
|
|
|
|
# Restore changed global variable
|
|
set global init_connect= @my_global_init_connect;
|
|
set global max_connections= default;
|
|
|
|
# End of 4.1 tests
|