X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueueFederated.php;h=7f3b2b1d59493e734bf8304f536a5e543d1b6284;hb=362a962c8db517f435843af45f0747ead6878252;hp=e74331113d4cf822fcc6bfd669247b08a168a656;hpb=89539f2aa1b158fdcc703ad053e2580cb97a6385;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobQueueFederated.php b/includes/jobqueue/JobQueueFederated.php index e74331113d..7f3b2b1d59 100644 --- a/includes/jobqueue/JobQueueFederated.php +++ b/includes/jobqueue/JobQueueFederated.php @@ -184,11 +184,10 @@ class JobQueueFederated extends JobQueue { // Try to insert the jobs and update $partitionsTry on any failures. // Retry to insert any remaning jobs again, ignoring the bad partitions. $jobsLeft = $jobs; - // @codingStandardsIgnoreStart Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed + // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall for ( $i = $this->maxPartitionsTry; $i > 0 && count( $jobsLeft ); --$i ) { - // @codingStandardsIgnoreEnd try { - $partitionRing->getLiveRing(); + $partitionRing->getLiveLocationWeights(); } catch ( UnexpectedValueException $e ) { break; // all servers down; nothing to insert to }