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};
|
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}
|
if ( $filter->{'ignore-tables'}->{$tbl}
|
||||||
&& ($filter->{'ignore-tables'}->{$tbl} eq '*'
|
&& ($filter->{'ignore-tables'}->{$tbl} eq '*'
|
||||||
|| $filter->{'ignore-tables'}->{$tbl} eq $db) ) {
|
|| $filter->{'ignore-tables'}->{$tbl} eq $db) ) {
|
||||||
|
@@ -2,7 +2,6 @@ mysql.columns_priv
|
|||||||
mysql.db
|
mysql.db
|
||||||
mysql.event
|
mysql.event
|
||||||
mysql.func
|
mysql.func
|
||||||
mysql.general_log
|
|
||||||
mysql.help_category
|
mysql.help_category
|
||||||
mysql.help_keyword
|
mysql.help_keyword
|
||||||
mysql.help_relation
|
mysql.help_relation
|
||||||
@@ -13,7 +12,6 @@ mysql.plugin
|
|||||||
mysql.proc
|
mysql.proc
|
||||||
mysql.procs_priv
|
mysql.procs_priv
|
||||||
mysql.servers
|
mysql.servers
|
||||||
mysql.slow_log
|
|
||||||
mysql.tables_priv
|
mysql.tables_priv
|
||||||
mysql.time_zone
|
mysql.time_zone
|
||||||
mysql.time_zone_leap_second
|
mysql.time_zone_leap_second
|
||||||
|
Reference in New Issue
Block a user