Merge "Avoid use of deprecated wikiId field in JobQueue"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 30 Mar 2019 00:43:45 +0000 (00:43 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 30 Mar 2019 00:43:45 +0000 (00:43 +0000)
includes/jobqueue/JobQueue.php
includes/jobqueue/JobQueueGroup.php

index fdcd65c..cb5cd82 100644 (file)
@@ -77,7 +77,7 @@ abstract class JobQueue {
         * Get a job queue object of the specified type.
         * $params includes:
         *   - class      : What job class to use (determines job type)
-        *   - wiki       : wiki ID of the wiki the jobs are for (defaults to current wiki)
+        *   - domain     : Database domain ID of the wiki the jobs are for (defaults to current wiki)
         *   - type       : The name of the job types this queue handles
         *   - order      : Order that pop() selects jobs, one of "fifo", "timestamp" or "random".
         *                  If "fifo" is used, the queue will effectively be FIFO. Note that job
index 328f298..1311149 100644 (file)
@@ -404,7 +404,7 @@ class JobQueueGroup {
                        $this->coalescedQueues = [];
                        foreach ( $wgJobTypeConf as $type => $conf ) {
                                $queue = JobQueue::factory(
-                                       [ 'wiki' => $this->domain, 'type' => 'null' ] + $conf );
+                                       [ 'domain' => $this->domain, 'type' => 'null' ] + $conf );
                                $loc = $queue->getCoalesceLocationInternal();
                                if ( !isset( $this->coalescedQueues[$loc] ) ) {
                                        $this->coalescedQueues[$loc]['queue'] = $queue;