[packages/mysql/MYSQL_5_0] mysqlhotcopy: do not fail storing slave status if master status can't be fetched

arekm arekm at pld-linux.org
Thu Aug 29 11:43:56 CEST 2013


commit c45eb0f0c0e9e6742f86d237b2d784d9403dc6ee
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue May 21 11:55:53 2013 +0300

    mysqlhotcopy: do not fail storing slave status if master status can't be fetched
    
    it's perfectly valid to fetch only slave status, having master status
    not present, i.e store log pos of slave-only node

 mysql.spec                 |  6 ++++--
 mysqlhotcopy-5.0-5.5.patch | 11 +++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/mysql.spec b/mysql.spec
index a093c8b..0ac3b90 100644
--- a/mysql.spec
+++ b/mysql.spec
@@ -69,11 +69,12 @@ Patch14:	%{name}-bug-16470.patch
 Patch15:	%{name}-system-users.patch
 Patch16:	%{name}-errorlog-no-rename.patch
 Patch18:	%{name}-xtrabackup.patch
+Patch19:	%{name}hotcopy-5.0-5.5.patch
 Patch21:	%{name}-atomic.patch
 Patch22:	%{name}-fix-dummy-thread-race-condition.patch
 # ourdelta
-Patch23:	big_tables_fixlp284123_fixmysql35346.patch
-Patch24:	mysql.init.patch
+Patch23:	big_tables_fixlp284123_fix%{name}35346.patch
+Patch24:	%{name}.init.patch
 Patch25:	%{name}-sslchain.patch
 # <percona patches, http://www.percona.com/percona-lab.html>
 Patch100:	%{name}-show_patches.patch
@@ -543,6 +544,7 @@ mv sphinx-*/mysqlse sql/sphinx
 %patch15 -p1
 %patch16 -p1
 %{?with_xtrabackup:%patch18 -p1}
+%patch19 -p1
 
 # <percona %patches>
 %patch100 -p1
diff --git a/mysqlhotcopy-5.0-5.5.patch b/mysqlhotcopy-5.0-5.5.patch
new file mode 100644
index 0000000..3382da2
--- /dev/null
+++ b/mysqlhotcopy-5.0-5.5.patch
@@ -0,0 +1,11 @@
+--- ./scripts/mysqlhotcopy.sh~	2013-03-19 11:30:02.000000000 +0200
++++ ./scripts/mysqlhotcopy.sh	2013-05-10 00:42:25.986175909 +0300
+@@ -789,7 +789,7 @@
+ 
+     eval {
+ 	my ($file,$position) = get_row( $dbh, "show master status" );
+-	die "master status is undefined" if !defined $file || !defined $position;
++	warn "master status is undefined" if !defined $file || !defined $position;
+ 	
+ 	my $row_hash = get_row_hash( $dbh, "show slave status" );
+ 	my ($master_host, $log_file, $log_pos ); 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mysql.git/commitdiff/d9f6eeecdb075d58b70cabc29216c632942940f7



More information about the pld-cvs-commit mailing list