LoadBalancer::getConnection needs the target wiki's ID, even
if we got the LoadBalancer instance specifically for that wiki.
Change-Id: I3fc81666dfa2552fac3ced2cadbd3f6db09e9596
$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 ) {