mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
Create MasterSlave with required args.
This commit is contained in:
@@ -3774,7 +3774,11 @@ sub check_delay {
|
||||
# Collect a list of connections to the slaves.
|
||||
if ( $o->get('recurse') ) {
|
||||
PTDEBUG && _d('Recursing to slaves');
|
||||
my $ms = new MasterSlave();
|
||||
my $ms = new MasterSlave(
|
||||
OptionParser => $o,
|
||||
DSNParser => $dp,
|
||||
Quoter => "Quoter",
|
||||
);
|
||||
$ms->recurse_to_slaves(
|
||||
{ dbh => $dbh,
|
||||
dsn => $dsn,
|
||||
|
@@ -8378,7 +8378,7 @@ sub main {
|
||||
# Do the work.
|
||||
# ########################################################################
|
||||
my $tp = new TableParser( Quoter => $q );
|
||||
my $ms = new MasterSlave();
|
||||
my $ms = new MasterSlave(OptionParser=>$o,DSNParser=>$dp,Quoter=>$q);
|
||||
my $du = new MySQLDump( cache => 0 );
|
||||
my $rt = new Retry();
|
||||
my $chunker = new TableChunker( Quoter => $q, TableParser => $tp );
|
||||
|
Reference in New Issue
Block a user