diff -Naurp mariadb-10.0.7/scripts/mysqlhotcopy.sh mariadb-10.0.7.oden/scripts/mysqlhotcopy.sh --- mariadb-10.0.7/scripts/mysqlhotcopy.sh 2013-12-23 10:35:07.000000000 +0100 +++ mariadb-10.0.7.oden/scripts/mysqlhotcopy.sh 2014-02-04 16:37:57.965339446 +0100 @@ -843,7 +843,24 @@ sub get_list_of_tables { } || []; warn "Unable to retrieve list of tables in $db: $@" if $@; - return (map { $_->[0] } @$tables); + my @ignore_tables = (); + + # Ignore tables for the mysql database + if ($db eq 'mysql') { + @ignore_tables = qw(general_log slow_log schema apply_status); + } + + my @res = (); + if ($#ignore_tables > 1) { + my @tmp = (map { $_->[0] } @$tables); + for my $t (@tmp) { + push(@res, $t) if not exists { map { $_=>1 } @ignore_tables }->{$t}; + } + } else { + @res = (map { $_->[0] } @$tables); + } + + return @res; } sub get_list_of_views {