SOURCES: mysql-bug-43594.patch (NEW) - skip locking of known CSV tables fro...

glen glen at pld-linux.org
Fri Apr 17 18:42:51 CEST 2009


Author: glen                         Date: Fri Apr 17 16:42:51 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- skip locking of known CSV tables from mysql tables

---- Files affected:
SOURCES:
   mysql-bug-43594.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/mysql-bug-43594.patch
diff -u /dev/null SOURCES/mysql-bug-43594.patch:1.1
--- /dev/null	Fri Apr 17 18:42:52 2009
+++ SOURCES/mysql-bug-43594.patch	Fri Apr 17 18:42:45 2009
@@ -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 {
+
================================================================


More information about the pld-cvs-commit mailing list