Revert r49. Will handle s/slave/replica/ in another branch.

This commit is contained in:
Daniel Nichter
2011-07-21 14:27:59 -06:00
parent a98cba66be
commit 7108054565
4 changed files with 68 additions and 80 deletions

View File

@@ -33,19 +33,7 @@ else {
$sb->create_dbs($master_dbh, ['test']);
$master_dbh->do('CREATE TABLE test.t (a INT)');
my $i = 0;
PerconaTest::wait_until(
sub {
my $r;
eval {
$r = $slave_dbh->selectrow_arrayref('SHOW TABLES FROM test LIKE "t"');
};
return 1 if ($r->[0] || '') eq 't';
diag('Waiting for CREATE TABLE to replicate...') unless $i++;
return 0;
},
0.5,
30,
);
PerconaTest::wait_for_table($slave_dbh, 'test.t');
# Bust replication
$slave_dbh->do('DROP TABLE test.t');