mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 08:51:44 +00:00
Test and fix very small --chunk-time. Report immediately when a slave is stopped. Add short form -q for --quiet. Report very slow checksums once for each table. Use Cxn::name() instead of Cxn::dsn()->{n}; remove n from DSNParser; make cxn's name @@hostname by default, else stringified DSN parts.
This commit is contained in:
@@ -12,6 +12,8 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 7;
|
||||
|
||||
use ReplicaLagWaiter;
|
||||
use OptionParser;
|
||||
use DSNParser;
|
||||
use Cxn;
|
||||
use PerconaTest;
|
||||
|
||||
@@ -38,8 +40,14 @@ sub sleep {
|
||||
sleep $t;
|
||||
}
|
||||
|
||||
my $r1 = new Cxn(dsn=>{n=>'slave1'}, dbh=>1, DSNParser=>1, OptionParser=>1);
|
||||
my $r2 = new Cxn(dsn=>{n=>'slave2'}, dbh=>2, DSNParser=>1, OptionParser=>1);
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
my $o = new OptionParser(description => 'Cxn');
|
||||
$o->get_specs("$trunk/bin/pt-table-checksum");
|
||||
$o->get_opts();
|
||||
$dp->prop('set-vars', $o->get('set-vars'));
|
||||
|
||||
my $r1 = new Cxn(dsn=>{n=>'slave1'}, dbh=>1, DSNParser=>$dp, OptionParser=>$o);
|
||||
my $r2 = new Cxn(dsn=>{n=>'slave2'}, dbh=>2, DSNParser=>$dp, OptionParser=>$o);
|
||||
|
||||
my $rll = new ReplicaLagWaiter(
|
||||
oktorun => \&oktorun,
|
||||
|
Reference in New Issue
Block a user