mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-04 19:37:49 +00:00
better cleaning in t/pt-table-sync/safety_checks.t
This commit is contained in:
@@ -465,6 +465,7 @@ sub is_cluster_node {
|
||||
sub can_load_data {
|
||||
my ($self, $server) = @_;
|
||||
my $output = $self->use($server, q{-e "SELECT * FROM percona_test.load_data"});
|
||||
#die(0 =~ /1/);
|
||||
return ($output || '') =~ /1/;
|
||||
}
|
||||
|
||||
|
@@ -110,8 +110,6 @@ unlike(
|
||||
# Bug 921700: pt-table-checksum doesn't add --where to chunk-oversize test
|
||||
# on replicas
|
||||
# #############################################################################
|
||||
diag(`ls -l /mnt/jenkins/workspace/pt-unit-tests/percona-toolkit/t/pt-table-checksum/samples/600cities.data`);
|
||||
diag(`ls -l $trunk/t/pt-table-checksum/samples/600cities.data`);
|
||||
$sb->load_file('source', 't/pt-table-checksum/samples/600cities.sql');
|
||||
$source_dbh->do("LOAD DATA LOCAL INFILE '$trunk/t/pt-table-checksum/samples/600cities.data' INTO TABLE test.t");
|
||||
$source_dbh->do("SET SQL_LOG_BIN=0");
|
||||
|
@@ -146,9 +146,8 @@ like(
|
||||
|
||||
$replica1_dbh->do("STOP ${replica_name}");
|
||||
$replica1_dbh->do("CHANGE ${source_change} TO ${source_name}_port=12345, ${source_name}_user='msandbox'");
|
||||
$replica1_dbh->do("START ${replica_name}");
|
||||
$replica1_dbh->do("STOP ${replica_name}");
|
||||
$replica1_dbh->do("CHANGE ${source_change} TO ${source_name}_port=12345, ${source_name}_user='msandbox'");
|
||||
$source_dbh->do("RESET ${source_reset}");
|
||||
$replica1_dbh->do("RESET ${replica_name}");
|
||||
$replica1_dbh->do("START ${replica_name}");
|
||||
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user