mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-30 01:01:51 +08:00
minor style change
This commit is contained in:
+1
-2
@@ -2400,9 +2400,8 @@ sub is_cluster_node {
|
|||||||
PTDEBUG && _d($cxn->name, $sql);
|
PTDEBUG && _d($cxn->name, $sql);
|
||||||
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
||||||
PTDEBUG && _d(Dumper($row));
|
PTDEBUG && _d(Dumper($row));
|
||||||
return unless $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1');
|
return $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1') ? 1 : 0;
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub remove_duplicate_cxns {
|
sub remove_duplicate_cxns {
|
||||||
|
|||||||
@@ -2744,9 +2744,8 @@ sub is_cluster_node {
|
|||||||
PTDEBUG && _d($cxn->name, $sql);
|
PTDEBUG && _d($cxn->name, $sql);
|
||||||
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
||||||
PTDEBUG && _d(Dumper($row));
|
PTDEBUG && _d(Dumper($row));
|
||||||
return unless $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1');
|
return $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1') ? 1 : 0;
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub remove_duplicate_cxns {
|
sub remove_duplicate_cxns {
|
||||||
|
|||||||
@@ -1896,9 +1896,8 @@ sub is_cluster_node {
|
|||||||
PTDEBUG && _d($cxn->name, $sql);
|
PTDEBUG && _d($cxn->name, $sql);
|
||||||
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
||||||
PTDEBUG && _d(Dumper($row));
|
PTDEBUG && _d(Dumper($row));
|
||||||
return unless $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1');
|
return $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1') ? 1 : 0;
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub remove_duplicate_cxns {
|
sub remove_duplicate_cxns {
|
||||||
|
|||||||
+1
-2
@@ -5263,9 +5263,8 @@ sub is_cluster_node {
|
|||||||
PTDEBUG && _d($cxn->name, $sql);
|
PTDEBUG && _d($cxn->name, $sql);
|
||||||
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
||||||
PTDEBUG && _d(Dumper($row));
|
PTDEBUG && _d(Dumper($row));
|
||||||
return unless $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1');
|
return $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1') ? 1 : 0;
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub remove_duplicate_cxns {
|
sub remove_duplicate_cxns {
|
||||||
|
|||||||
@@ -3860,9 +3860,8 @@ sub is_cluster_node {
|
|||||||
PTDEBUG && _d($cxn->name, $sql);
|
PTDEBUG && _d($cxn->name, $sql);
|
||||||
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
||||||
PTDEBUG && _d(Dumper($row));
|
PTDEBUG && _d(Dumper($row));
|
||||||
return unless $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1');
|
return $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1') ? 1 : 0;
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub remove_duplicate_cxns {
|
sub remove_duplicate_cxns {
|
||||||
|
|||||||
@@ -3638,9 +3638,8 @@ sub is_cluster_node {
|
|||||||
PTDEBUG && _d($cxn->name, $sql);
|
PTDEBUG && _d($cxn->name, $sql);
|
||||||
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
||||||
PTDEBUG && _d(Dumper($row));
|
PTDEBUG && _d(Dumper($row));
|
||||||
return unless $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1');
|
return $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1') ? 1 : 0;
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub remove_duplicate_cxns {
|
sub remove_duplicate_cxns {
|
||||||
|
|||||||
+1
-2
@@ -2569,9 +2569,8 @@ sub is_cluster_node {
|
|||||||
PTDEBUG && _d($cxn->name, $sql);
|
PTDEBUG && _d($cxn->name, $sql);
|
||||||
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
||||||
PTDEBUG && _d(Dumper($row));
|
PTDEBUG && _d(Dumper($row));
|
||||||
return unless $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1');
|
return $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1') ? 1 : 0;
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub remove_duplicate_cxns {
|
sub remove_duplicate_cxns {
|
||||||
|
|||||||
+1
-2
@@ -235,9 +235,8 @@ sub is_cluster_node {
|
|||||||
PTDEBUG && _d($cxn->name, $sql);
|
PTDEBUG && _d($cxn->name, $sql);
|
||||||
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
my $row = $cxn->dbh->selectrow_arrayref($sql);
|
||||||
PTDEBUG && _d(Dumper($row));
|
PTDEBUG && _d(Dumper($row));
|
||||||
return unless $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1');
|
return $row && $row->[1] && ($row->[1] eq 'ON' || $row->[1] eq '1') ? 1 : 0;
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# There's two reasons why there might be dupes:
|
# There's two reasons why there might be dupes:
|
||||||
|
|||||||
Reference in New Issue
Block a user