X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueueDB.php;h=b7cc133a75d13cf6b256fcaef6e5636f5cad93c3;hb=b161fd7b305323f381b24bf720368727bab9e1a7;hp=9b9928d1f39edf540dc8cd8520bb74636d4de14b;hpb=178bada116bc5aa336191f4867fec5cae2258cd6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobQueueDB.php b/includes/jobqueue/JobQueueDB.php index 9b9928d1f3..b7cc133a75 100644 --- a/includes/jobqueue/JobQueueDB.php +++ b/includes/jobqueue/JobQueueDB.php @@ -18,7 +18,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @author Aaron Schulz */ use Wikimedia\Rdbms\IDatabase; use Wikimedia\Rdbms\DBConnRef; @@ -769,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 );