mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
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.
This commit is contained in:
parent
9d59b2705a
commit
20ef52e612
1 changed files with 8 additions and 0 deletions
|
@ -267,6 +267,14 @@ foreach my $rdb ( @db_desc ) {
|
|||
my $db = $rdb->{src};
|
||||
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
|
||||
my $t_regex;
|
||||
my $negated;
|
||||
|
|
Loading…
Add table
Reference in a new issue