2005-03-29 17:17:46 -08:00
|
|
|
source include/master-slave.inc;
|
|
|
|
|
2008-02-08 21:03:10 +02:00
|
|
|
connection master;
|
|
|
|
|
2006-11-15 10:23:27 +01:00
|
|
|
# Init for rstore of variable values
|
|
|
|
set @my_slave_net_timeout =@@global.slave_net_timeout;
|
|
|
|
|
2005-03-29 17:17:46 -08:00
|
|
|
set global slave_net_timeout=100;
|
|
|
|
set global sql_slave_skip_counter=100;
|
2005-05-07 06:55:47 -07:00
|
|
|
|
2005-07-28 03:22:47 +03:00
|
|
|
# End of 4.1 tests
|
2005-07-28 17:09:54 +03:00
|
|
|
|
2005-05-07 06:55:47 -07:00
|
|
|
# BUG #7800: Add various-slave related variables to SHOW VARIABLES
|
|
|
|
show variables like 'slave_compressed_protocol';
|
2005-05-18 15:10:43 +05:00
|
|
|
--replace_column 2 SLAVE_LOAD_TMPDIR
|
2005-05-07 06:55:47 -07:00
|
|
|
show variables like 'slave_load_tmpdir';
|
|
|
|
# We just set some arbitrary values in variables-master.opt so we can test
|
|
|
|
# that a list of values works correctly
|
|
|
|
show variables like 'slave_skip_errors';
|
2006-11-15 10:23:27 +01:00
|
|
|
|
|
|
|
# Restore touched values
|
|
|
|
set global slave_net_timeout =@my_slave_net_timeout;
|
2008-02-08 21:03:10 +02:00
|
|
|
|
|
|
|
# bug#34427 slave misses rendezvous
|
|
|
|
# don't let the master be shut down until the slave has connected
|
|
|
|
sync_slave_with_master;
|
|
|
|
|