mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-11 01:01:36 +08:00
Removed indirect object syntax from the modulino portion of pt-deadlock-logger
This commit is contained in:
@@ -1806,13 +1806,13 @@ my %is_proc_info = (
|
||||
sub main {
|
||||
@ARGV = @_; # set global ARGV for this package
|
||||
|
||||
my $q = new Quoter();
|
||||
my $vp = new VersionParser();
|
||||
my $q = Quoter->new();
|
||||
my $vp = VersionParser->new();
|
||||
|
||||
# ########################################################################
|
||||
# Get configuration information.
|
||||
# ########################################################################
|
||||
$o = new OptionParser();
|
||||
$o = OptionParser->new();
|
||||
$o->get_specs();
|
||||
$o->get_opts();
|
||||
|
||||
@@ -1897,13 +1897,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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user