Auto-skip mysql.slow|general_log tables.

This commit is contained in:
Daniel Nichter
2011-09-23 08:07:03 -06:00
parent 1d47fe29b8
commit 361c958a66
2 changed files with 5 additions and 2 deletions

View File

@@ -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) ) {