Add parentheses to avoid ambiguity.

This commit is contained in:
Daniel Nichter
2011-08-23 08:29:47 -06:00
parent f2559cfd96
commit ff59f479e6

View File

@@ -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;