~percona-toolkit-dev/percona-toolkit/fix-password-comma-bug-886077

« back to all changes in this revision

Viewing changes to lib/VariableAdvisorRules.pm

  • Committer: Daniel Nichter
  • Date: 2012-02-07 20:10:11 UTC
  • mfrom: (174 2.0)
  • mto: This revision was merged to the branch mainline in revision 189.
  • Revision ID: daniel@percona.com-20120207201011-sok2c1f2ay9qr3gm
Merge trunk r174.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
use strict;
27
27
use warnings FATAL => 'all';
28
28
use English qw(-no_match_vars);
29
 
use constant MKDEBUG => $ENV{MKDEBUG} || 0;
 
29
use constant PTDEBUG => $ENV{PTDEBUG} || 0;
30
30
 
31
31
sub new {
32
32
   my ( $class, %args ) = @_;
33
33
   my $self = $class->SUPER::new(%args);
34
34
   @{$self->{rules}} = $self->get_rules();
35
 
   MKDEBUG && _d(scalar @{$self->{rules}}, "rules");
 
35
   PTDEBUG && _d(scalar @{$self->{rules}}, "rules");
36
36
   return $self;
37
37
}
38
38