PT-2110 - Fixed PTDEBUG output with --ignore-engines option (#555)

This commit is contained in:
Kazuya Yokogawa
2022-11-30 20:51:49 +09:00
committed by GitHub
parent c9bf980ef5
commit bc3056f29d
5 changed files with 16 additions and 16 deletions

View File

@@ -462,10 +462,10 @@ sub table_is_allowed {
|slave_master_info
|slave_relay_log_info
|slave_worker_info
|slow_log
|slow_log
)$/x;
if ( $filter->{'ignore-tables'}->{'*'}->{$tbl}
if ( $filter->{'ignore-tables'}->{'*'}->{$tbl}
|| $filter->{'ignore-tables'}->{$db}->{$tbl}) {
PTDEBUG && _d('Table', $tbl, 'is in --ignore-tables list');
return 0;
@@ -478,7 +478,7 @@ sub table_is_allowed {
}
if ( $filter->{'tables'}
&& (!$filter->{'tables'}->{'*'}->{$tbl} && !$filter->{'tables'}->{$db}->{$tbl}) ) {
&& (!$filter->{'tables'}->{'*'}->{$tbl} && !$filter->{'tables'}->{$db}->{$tbl}) ) {
PTDEBUG && _d('Table', $tbl, 'is not in --tables list, ignoring');
return 0;
}
@@ -527,7 +527,7 @@ sub engine_is_allowed {
my $filter = $self->{filters};
if ( $filter->{'ignore-engines'}->{$engine} ) {
PTDEBUG && _d('Engine', $engine, 'is in --ignore-databases list');
PTDEBUG && _d('Engine', $engine, 'is in --ignore-engines list');
return 0;
}