]> git.pld-linux.org Git - packages/percona-server.git/commitdiff
- skip locking of known CSV tables from mysql tables
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 17 Apr 2009 16:42:45 +0000 (16:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql-bug-43594.patch -> 1.1

mysql-bug-43594.patch [new file with mode: 0644]

diff --git a/mysql-bug-43594.patch b/mysql-bug-43594.patch
new file mode 100644 (file)
index 0000000..b8cc07b
--- /dev/null
@@ -0,0 +1,30 @@
+=== 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 {
+
This page took 0.029774 seconds and 4 git commands to generate.