Commit 20ef52e6 authored by Georgi Kodinov's avatar Georgi Kodinov

Bug #43594: mysqlhotcopy does not ignore log tables and others in mysql database

Added a filter to mysqlhotcopy to filter out the same tables in the 'mysql' 
database that mysqldump filters out.
parent 9d59b270
...@@ -267,6 +267,14 @@ foreach my $rdb ( @db_desc ) { ...@@ -267,6 +267,14 @@ foreach my $rdb ( @db_desc ) {
my $db = $rdb->{src}; my $db = $rdb->{src};
my @dbh_tables = get_list_of_tables( $db ); my @dbh_tables = get_list_of_tables( $db );
## filter out certain system non-lockable tables.
## keep in sync with mysqldump.
if ($db =~ m/^mysql$/i)
{
@dbh_tables = grep
{ !/^(apply_status|schema|general_log|slow_log)$/ } @dbh_tables
}
## generate regex for tables/files ## generate regex for tables/files
my $t_regex; my $t_regex;
my $negated; my $negated;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment