From: Amir Sarabadani Date: Mon, 1 Oct 2018 13:09:22 +0000 (+0200) Subject: Add waitForReplication in DeleteLocalPasswords X-Git-Tag: 1.34.0-rc.0~3938^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=609d1fa001e12f2cf85a10c1bc2fec24a440d341;p=lhc%2Fweb%2Fwiklou.git Add waitForReplication in DeleteLocalPasswords It almost brought commonswiki down when it was run Bug: T201009 Change-Id: Ia825f9572b8c71c5627eb627c58f51a689c2f8aa --- diff --git a/maintenance/includes/DeleteLocalPasswords.php b/maintenance/includes/DeleteLocalPasswords.php index 02c8bedd4d..747319d6a2 100644 --- a/maintenance/includes/DeleteLocalPasswords.php +++ b/maintenance/includes/DeleteLocalPasswords.php @@ -143,6 +143,7 @@ ERROR ); } $this->total += $dbw->affectedRows(); + MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->waitForReplication(); } /**