MWHttpRequest: Include the request ID in outgoing HTTP requests
[lhc/web/wiklou.git] / maintenance / includes / DeleteLocalPasswords.php
index 02c8bed..b964417 100644 (file)
@@ -105,6 +105,7 @@ ERROR
        /**
         * Get the master DB handle for the current user batch. This is provided for the benefit
         * of authentication extensions which subclass this and work with wiki farms.
+        * @return IMaintainableDatabase
         */
        protected function getUserDB() {
                return $this->getDB( DB_MASTER );
@@ -143,6 +144,7 @@ ERROR
                        );
                }
                $this->total += $dbw->affectedRows();
+               MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->waitForReplication();
        }
 
        /**