From 609d1fa001e12f2cf85a10c1bc2fec24a440d341 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Mon, 1 Oct 2018 15:09:22 +0200 Subject: [PATCH] Add waitForReplication in DeleteLocalPasswords It almost brought commonswiki down when it was run Bug: T201009 Change-Id: Ia825f9572b8c71c5627eb627c58f51a689c2f8aa --- maintenance/includes/DeleteLocalPasswords.php | 1 + 1 file changed, 1 insertion(+) 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(); } /** -- 2.20.1