mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +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.
|
# Collect a list of connections to the slaves.
|
||||||
if ( $o->get('recurse') ) {
|
if ( $o->get('recurse') ) {
|
||||||
PTDEBUG && _d('Recursing to slaves');
|
PTDEBUG && _d('Recursing to slaves');
|
||||||
my $ms = new MasterSlave();
|
my $ms = new MasterSlave(
|
||||||
|
OptionParser => $o,
|
||||||
|
DSNParser => $dp,
|
||||||
|
Quoter => "Quoter",
|
||||||
|
);
|
||||||
$ms->recurse_to_slaves(
|
$ms->recurse_to_slaves(
|
||||||
{ dbh => $dbh,
|
{ dbh => $dbh,
|
||||||
dsn => $dsn,
|
dsn => $dsn,
|
||||||
|
@@ -8378,7 +8378,7 @@ sub main {
|
|||||||
# Do the work.
|
# Do the work.
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
my $tp = new TableParser( Quoter => $q );
|
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 $du = new MySQLDump( cache => 0 );
|
||||||
my $rt = new Retry();
|
my $rt = new Retry();
|
||||||
my $chunker = new TableChunker( Quoter => $q, TableParser => $tp );
|
my $chunker = new TableChunker( Quoter => $q, TableParser => $tp );
|
||||||
|
Reference in New Issue
Block a user