Merge pull request #191 from guriandoro/pt-table-checksum-fix-ignored-dbs-LP1642994

pt table checksum fix ignored dbs lp1642994
This commit is contained in:
Carlos Salguero
2017-06-19 11:47:27 -03:00
committed by GitHub
5 changed files with 5 additions and 40 deletions

View File

@@ -3549,22 +3549,15 @@ sub table_is_allowed {
return 0 if $db eq 'mysql' && $tbl =~ m/^(?:
general_log
|gtid_execution
|gtid_executed
|innodb_index_stats
|innodb_table_stats
|inventory
|plugin
|proc
|slave_master_info
|slave_relay_log_info
|slave_worker_info
|slow_log
)$/x;
return 0 if $db eq 'sys' && $tbl =~ m/^(?:
sys_config
)$/x;
if ( $filter->{'ignore-tables'}->{'*'}->{$tbl}
|| $filter->{'ignore-tables'}->{$db}->{$tbl}) {
PTDEBUG && _d('Table', $tbl, 'is in --ignore-tables list');

View File

@@ -4327,22 +4327,15 @@ sub table_is_allowed {
return 0 if $db eq 'mysql' && $tbl =~ m/^(?:
general_log
|gtid_execution
|gtid_executed
|innodb_index_stats
|innodb_table_stats
|inventory
|plugin
|proc
|slave_master_info
|slave_relay_log_info
|slave_worker_info
|slow_log
)$/x;
return 0 if $db eq 'sys' && $tbl =~ m/^(?:
sys_config
)$/x;
if ( $filter->{'ignore-tables'}->{'*'}->{$tbl}
|| $filter->{'ignore-tables'}->{$db}->{$tbl}) {
PTDEBUG && _d('Table', $tbl, 'is in --ignore-tables list');

View File

@@ -7714,22 +7714,15 @@ sub table_is_allowed {
return 0 if $db eq 'mysql' && $tbl =~ m/^(?:
general_log
|gtid_execution
|gtid_executed
|innodb_index_stats
|innodb_table_stats
|inventory
|plugin
|proc
|slave_master_info
|slave_relay_log_info
|slave_worker_info
|slow_log
)$/x;
return 0 if $db eq 'sys' && $tbl =~ m/^(?:
sys_config
)$/x;
if ( $filter->{'ignore-tables'}->{'*'}->{$tbl}
|| $filter->{'ignore-tables'}->{$db}->{$tbl}) {
PTDEBUG && _d('Table', $tbl, 'is in --ignore-tables list');

View File

@@ -7897,22 +7897,15 @@ sub table_is_allowed {
return 0 if $db eq 'mysql' && $tbl =~ m/^(?:
general_log
|gtid_execution
|gtid_executed
|innodb_index_stats
|innodb_table_stats
|inventory
|plugin
|proc
|slave_master_info
|slave_relay_log_info
|slave_worker_info
|slow_log
)$/x;
return 0 if $db eq 'sys' && $tbl =~ m/^(?:
sys_config
)$/x;
if ( $filter->{'ignore-tables'}->{'*'}->{$tbl}
|| $filter->{'ignore-tables'}->{$db}->{$tbl}) {
PTDEBUG && _d('Table', $tbl, 'is in --ignore-tables list');

View File

@@ -456,22 +456,15 @@ sub table_is_allowed {
# Always auto-skip these pseudo tables.
return 0 if $db eq 'mysql' && $tbl =~ m/^(?:
general_log
|gtid_execution
|gtid_executed
|innodb_index_stats
|innodb_table_stats
|inventory
|plugin
|proc
|slave_master_info
|slave_relay_log_info
|slave_worker_info
|slow_log
)$/x;
return 0 if $db eq 'sys' && $tbl =~ m/^(?:
sys_config
)$/x;
if ( $filter->{'ignore-tables'}->{'*'}->{$tbl}
|| $filter->{'ignore-tables'}->{$db}->{$tbl}) {
PTDEBUG && _d('Table', $tbl, 'is in --ignore-tables list');