9301fefeac
Copy from server:database/mariadb based on submit request 39217 from user -miska- OBS-URL: https://build.opensuse.org/request/show/39217 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mariadb?expand=0&rev=1
31 lines
829 B
Diff
31 lines
829 B
Diff
=== modified file 'scripts/mysqlhotcopy.sh'
|
|
--- scripts/mysqlhotcopy.sh 2008-03-07 20:45:40 +0000
|
|
+++ scripts/mysqlhotcopy.sh 2009-03-12 13:06:42 +0000
|
|
@@ -777,7 +777,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 quote_names {
|
|
|