mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-17 01:01:39 +08:00
make slaves set themselves read_only. Fix problem with replication_filters.t that is possibly not starting slaves after their masters are restarted.
This commit is contained in:
@@ -272,6 +272,16 @@ is(
|
||||
"USE only --replicate-database (binlog dump)"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Stop and start slaves to avoid sandbox breakage caused by restarting servers.
|
||||
# #############################################################################
|
||||
$slave1_dbh = $sb->get_dbh_for('slave1');
|
||||
$slave2_dbh = $sb->get_dbh_for('slave2');
|
||||
$slave1_dbh->do('STOP SLAVE');
|
||||
$slave2_dbh->do('STOP SLAVE');
|
||||
$slave1_dbh->do('START SLAVE');
|
||||
$slave2_dbh->do('START SLAVE');
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
||||
Reference in New Issue
Block a user