mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 07:30:02 +00:00
Removed indirect object syntax from the modulino portion of pt-slave-delay
This commit is contained in:
@@ -2023,8 +2023,8 @@ my $oktorun = 1;
|
||||
sub main {
|
||||
@ARGV = @_; # set global ARGV for this package
|
||||
|
||||
my $vp = new VersionParser();
|
||||
$o = new OptionParser();
|
||||
my $vp = VersionParser->new();
|
||||
$o = OptionParser->new();
|
||||
$o->get_specs();
|
||||
$o->get_opts();
|
||||
|
||||
@@ -2087,13 +2087,13 @@ sub main {
|
||||
# Daemonize only after (potentially) asking for passwords for --ask-pass.
|
||||
my $daemon;
|
||||
if ( $o->get('daemonize') ) {
|
||||
$daemon = new Daemon(o=>$o);
|
||||
$daemon = Daemon->new(o=>$o);
|
||||
$daemon->daemonize();
|
||||
MKDEBUG && _d('I am a daemon now');
|
||||
}
|
||||
elsif ( $o->get('pid') ) {
|
||||
# We're not daemoninzing, it just handles PID stuff.
|
||||
$daemon = new Daemon(o=>$o);
|
||||
$daemon = Daemon->new(o=>$o);
|
||||
$daemon->make_PID_file();
|
||||
}
|
||||
|
||||
@@ -2113,7 +2113,7 @@ sub main {
|
||||
# increasing wait time from 3 to 15 seconds.
|
||||
$o->set('ask-pass', 0); # don't ask again
|
||||
my $tries = 10;
|
||||
my $rt = new Retry();
|
||||
my $rt = Retry->new();
|
||||
$rt->retry(
|
||||
tries => $tries,
|
||||
retry_on_die => 1,
|
||||
|
Reference in New Issue
Block a user