From: daniel Date: Thu, 10 Jan 2013 11:03:40 +0000 (+0100) Subject: Fix access to other wiki's job queue. X-Git-Tag: 1.31.0-rc.0~21078^2 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=5d6c71394b892816fc87d4367578abbd40745526;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) {