X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueueDB.php;h=b7cc133a75d13cf6b256fcaef6e5636f5cad93c3;hb=d5a7166771613dfe4ed9fb75fa5efeced6134bd1;hp=cefe74df18f05ba400a4d673960b22864330879d;hpb=230b3ee879e59109af175eb0b7eba0ef7cf7e160;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 );