Remove excess getExternalLB() argument
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 17 Jul 2017 23:32:53 +0000 (16:32 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 17 Jul 2017 23:32:53 +0000 (16:32 -0700)
Change-Id: I097b1ba46806649f014ca624d15d9064ee0f9ba7

includes/jobqueue/JobQueueDB.php

index cefe74d..b7cc133 100644 (file)
@@ -768,7 +768,7 @@ class JobQueueDB extends JobQueue {
        protected function getDB( $index ) {
                $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
                $lb = ( $this->cluster !== false )
-                       ? $lbFactory->getExternalLB( $this->cluster, $this->wiki )
+                       ? $lbFactory->getExternalLB( $this->cluster )
                        : $lbFactory->getMainLB( $this->wiki );
 
                return $lb->getConnectionRef( $index, [], $this->wiki );