mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-23 02:00:56 +08:00
Add parentheses to avoid ambiguity.
This commit is contained in:
@@ -643,7 +643,7 @@ sub is_replication_thread {
|
|||||||
my ( $self, $query, %args ) = @_;
|
my ( $self, $query, %args ) = @_;
|
||||||
return unless $query;
|
return unless $query;
|
||||||
|
|
||||||
my $type = lc $args{type} || 'all';
|
my $type = lc($args{type} || 'all');
|
||||||
die "Invalid type: $type"
|
die "Invalid type: $type"
|
||||||
unless $type =~ m/^binlog_dump|slave_io|slave_sql|all$/i;
|
unless $type =~ m/^binlog_dump|slave_io|slave_sql|all$/i;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user