mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-12 01:00:57 +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 {
|
sub main {
|
||||||
@ARGV = @_; # set global ARGV for this package
|
@ARGV = @_; # set global ARGV for this package
|
||||||
|
|
||||||
my $q = new Quoter();
|
my $q = Quoter->new();
|
||||||
my $vp = new VersionParser();
|
my $vp = VersionParser->new();
|
||||||
|
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
# Get configuration information.
|
# Get configuration information.
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
$o = new OptionParser();
|
$o = OptionParser->new();
|
||||||
$o->get_specs();
|
$o->get_specs();
|
||||||
$o->get_opts();
|
$o->get_opts();
|
||||||
|
|
||||||
@@ -1897,13 +1897,13 @@ sub main {
|
|||||||
# Daemonize only after (potentially) asking for passwords for --ask-pass.
|
# Daemonize only after (potentially) asking for passwords for --ask-pass.
|
||||||
my $daemon;
|
my $daemon;
|
||||||
if ( $o->get('daemonize') ) {
|
if ( $o->get('daemonize') ) {
|
||||||
$daemon = new Daemon(o=>$o);
|
$daemon = Daemon->new(o=>$o);
|
||||||
$daemon->daemonize();
|
$daemon->daemonize();
|
||||||
MKDEBUG && _d('I am a daemon now');
|
MKDEBUG && _d('I am a daemon now');
|
||||||
}
|
}
|
||||||
elsif ( $o->get('pid') ) {
|
elsif ( $o->get('pid') ) {
|
||||||
# We're not daemoninzing, it just handles PID stuff.
|
# We're not daemoninzing, it just handles PID stuff.
|
||||||
$daemon = new Daemon(o=>$o);
|
$daemon = Daemon->new(o=>$o);
|
||||||
$daemon->make_PID_file();
|
$daemon->make_PID_file();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user