Create MasterSlave with required args.

This commit is contained in:
Daniel Nichter
2012-08-02 11:14:47 -06:00
parent e6d31a666a
commit 7aa51a9f3a
2 changed files with 6 additions and 2 deletions

View File

@@ -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,

View File

@@ -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 );