X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueueDB.php;h=b7cc133a75d13cf6b256fcaef6e5636f5cad93c3;hb=b161fd7b305323f381b24bf720368727bab9e1a7;hp=cefe74df18f05ba400a4d673960b22864330879d;hpb=7471e1db1b613d035f981f489f8683a177acff7e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobQueueDB.php b/includes/jobqueue/JobQueueDB.php index cefe74df18..b7cc133a75 100644 --- a/includes/jobqueue/JobQueueDB.php +++ b/includes/jobqueue/JobQueueDB.php @@ -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 );