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