Springle has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/142484

Change subject: Additional replication state checks.
......................................................................

Additional replication state checks.

Change-Id: Iae3a578a0db4fdd2106b49dcd1ccbd3da9c63c02
---
M dbtools/repl.pl
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/software 
refs/changes/84/142484/1

diff --git a/dbtools/repl.pl b/dbtools/repl.pl
index 241b7c6..a1897bc 100755
--- a/dbtools/repl.pl
+++ b/dbtools/repl.pl
@@ -157,6 +157,8 @@
 {
        print "Checking relationship...\n";
 
+       &check_both_running;
+
        if ($parent_status->{Relay_Master_Log_File} eq 
$child_status->{Relay_Master_Log_File}
                and $parent_status->{Exec_Master_Log_Pos} eq 
$child_status->{Exec_Master_Log_Pos}
                and $parent_status->{Slave_SQL_Running} eq "No"
@@ -300,6 +302,8 @@
 
        print "Checking relationship...\n";
 
+       &check_both_running;
+
        unless ($child_status->{Master_Host} eq $parent_host and 
$child_status->{Master_Port} eq $parent_port) {
                die("${child_host}:${child_port} is not a slave of 
${parent_host}:${parent_port}");
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/142484
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iae3a578a0db4fdd2106b49dcd1ccbd3da9c63c02
Gerrit-PatchSet: 1
Gerrit-Project: operations/software
Gerrit-Branch: master
Gerrit-Owner: Springle <sprin...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to