From 5d6c71394b892816fc87d4367578abbd40745526 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 10 Jan 2013 12:03:40 +0100 Subject: [PATCH] Fix access to other wiki's job queue. LoadBalancer::getConnection needs the target wiki's ID, even if we got the LoadBalancer instance specifically for that wiki. Change-Id: I3fc81666dfa2552fac3ced2cadbd3f6db09e9596 --- includes/job/JobQueueDB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/job/JobQueueDB.php b/includes/job/JobQueueDB.php index 8c81cf0702..de2f6dca8f 100644 --- a/includes/job/JobQueueDB.php +++ b/includes/job/JobQueueDB.php @@ -576,7 +576,7 @@ class JobQueueDB extends JobQueue { $lb = ( $this->cluster !== false ) ? wfGetLBFactory()->getExternalLB( $this->cluster, $this->wiki ) : wfGetLB( $this->wiki ); - $conn = $lb->getConnection( $index ); + $conn = $lb->getConnection( $index, array(), $this->wiki ); return array( $conn, new ScopedCallback( function() use ( $lb, $conn ) { -- 2.20.1