mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
Auto-skip mysql.slow|general_log tables.
This commit is contained in:
@@ -414,6 +414,11 @@ sub table_is_allowed {
|
||||
|
||||
my $filter = $self->{filters};
|
||||
|
||||
# Always auto-skip these pseudo tables.
|
||||
if ( $db eq 'mysql' && ($tbl eq 'general_log' || $tbl eq 'slow_log') ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ( $filter->{'ignore-tables'}->{$tbl}
|
||||
&& ($filter->{'ignore-tables'}->{$tbl} eq '*'
|
||||
|| $filter->{'ignore-tables'}->{$tbl} eq $db) ) {
|
||||
|
@@ -2,7 +2,6 @@ mysql.columns_priv
|
||||
mysql.db
|
||||
mysql.event
|
||||
mysql.func
|
||||
mysql.general_log
|
||||
mysql.help_category
|
||||
mysql.help_keyword
|
||||
mysql.help_relation
|
||||
@@ -13,7 +12,6 @@ mysql.plugin
|
||||
mysql.proc
|
||||
mysql.procs_priv
|
||||
mysql.servers
|
||||
mysql.slow_log
|
||||
mysql.tables_priv
|
||||
mysql.time_zone
|
||||
mysql.time_zone_leap_second
|
||||
|
Reference in New Issue
Block a user