Add waitForReplication in DeleteLocalPasswords
[lhc/web/wiklou.git] / maintenance / includes / DeleteLocalPasswords.php
index bfbbcdc..747319d 100644 (file)
@@ -143,6 +143,7 @@ ERROR
                        );
                }
                $this->total += $dbw->affectedRows();
+               MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->waitForReplication();
        }
 
        /**
@@ -169,7 +170,7 @@ ERROR
                                'user',
                                'user_name',
                                [
-                                       'user_name > ' .$dbw->addQuotes( $lastUsername ),
+                                       'user_name > ' . $dbw->addQuotes( $lastUsername ),
                                ],
                                __METHOD__,
                                [