it's perfectly valid to fetch only slave status, having master status
not present, i.e store log pos of slave-only node
Summary(zh_CN.UTF-8): MySQL数据库服务器
Name: mysql
Version: 5.5.30
-Release: 2
+Release: 3
License: GPL + MySQL FLOSS Exception
Group: Applications/Databases
# Source0Download: http://dev.mysql.com/downloads/mysql/5.5.html#downloads
# from fedora
Source15: lib%{name}.version
+Patch2: mysqlhotcopy-5.0-5.5.patch
Patch3: bug-67402.patch
# from fedora
Patch5: %{name}-versioning.patch
%patch18 -p1
%endif
+%patch2 -p1
%patch3 -p1
%patch5 -p1
--- /dev/null
+--- ./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 );