mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Removed indirect object syntax from the modulino portion of pt-slave-find
This commit is contained in:
@@ -2552,7 +2552,7 @@ sub main {
|
|||||||
# ########################################################################
|
# ########################################################################
|
||||||
# Get configuration information.
|
# Get configuration information.
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
my $o = new OptionParser();
|
my $o = OptionParser->new();
|
||||||
$o->get_specs();
|
$o->get_specs();
|
||||||
$o->get_opts();
|
$o->get_opts();
|
||||||
|
|
||||||
@@ -2580,7 +2580,7 @@ sub main {
|
|||||||
# We're not daemoninzing, it just handles PID stuff. Keep $daemon
|
# We're not daemoninzing, it just handles PID stuff. Keep $daemon
|
||||||
# in the the scope of main() because when it's destroyed it automatically
|
# in the the scope of main() because when it's destroyed it automatically
|
||||||
# removes the PID file.
|
# removes the PID file.
|
||||||
$daemon = new Daemon(o=>$o);
|
$daemon = Daemon->new(o=>$o);
|
||||||
$daemon->make_PID_file();
|
$daemon->make_PID_file();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2595,8 +2595,8 @@ sub main {
|
|||||||
|
|
||||||
# Despite the name, recursing to slaves actually begins at the specified
|
# Despite the name, recursing to slaves actually begins at the specified
|
||||||
# server, so the named server may also be included.
|
# server, so the named server may also be included.
|
||||||
my $vp = new VersionParser();
|
my $vp = VersionParser->new();
|
||||||
my $ms = new MasterSlave(VersionParser => $vp);
|
my $ms = MasterSlave->new(VersionParser => $vp);
|
||||||
$ms->recurse_to_slaves(
|
$ms->recurse_to_slaves(
|
||||||
{ dbh => $dbh,
|
{ dbh => $dbh,
|
||||||
dsn => $master_dsn,
|
dsn => $master_dsn,
|
||||||
|
Reference in New Issue
Block a user