X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fjobqueue%2Futils%2FBacklinkJobUtils.php;h=76f8d6d2ac48d30001ae4a640176ef791d3598c7;hp=a81cadefc65c52c737f0c02024cdb6fdff671273;hb=5049af1048c77b1ea6ab3193688d23a48ddf8df0;hpb=92a52ddc527d5aeb2e7e2e931c23b4a15061378a diff --git a/includes/jobqueue/utils/BacklinkJobUtils.php b/includes/jobqueue/utils/BacklinkJobUtils.php index a81cadefc6..76f8d6d2ac 100644 --- a/includes/jobqueue/utils/BacklinkJobUtils.php +++ b/includes/jobqueue/utils/BacklinkJobUtils.php @@ -19,7 +19,6 @@ * * @file * @ingroup JobQueue - * @author Aaron Schulz */ /** @@ -33,7 +32,7 @@ * For example, if templates A and B are edited (at the same time) the queue will have: * (A base, B base) * When these jobs run, the queue will have per-title and remnant partition jobs: - * (titleX,titleY,titleZ,...,A remnant,titleM,titleN,titleO,...,B remnant) + * (titleX,titleY,titleZ,...,A remnant,titleM,titleN,titleO,...,B remnant) * * This works best when the queue is FIFO, for several reasons: * - a) Since the remnant jobs are enqueued after the leaf jobs, the slower leaf jobs have to @@ -116,7 +115,7 @@ class BacklinkJobUtils { foreach ( array_chunk( $titles, $cSize ) as $titleBatch ) { $pages = []; foreach ( $titleBatch as $tl ) { - $pages[$tl->getArticleId()] = [ $tl->getNamespace(), $tl->getDBKey() ]; + $pages[$tl->getArticleID()] = [ $tl->getNamespace(), $tl->getDBkey() ]; } $jobs[] = new $class( $title, // maintain parent job title @@ -133,7 +132,7 @@ class BacklinkJobUtils { 'table' => $params['table'], 'range' => [ 'start' => $ranges[1][0], - 'end' => $ranges[count( $ranges ) - 1][1], + 'end' => $ranges[count( $ranges ) - 1][1], 'batchSize' => $realBSize, 'subranges' => array_slice( $ranges, 1 ) ],