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:
Baron Schwartz
2012-06-03 16:20:58 -04:00
parent 30a2bdb78c
commit bfd2222a54
2 changed files with 22 additions and 7 deletions

View File

@@ -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.
# #############################################################################