Page MenuHomePhabricator

Replace ILBFactory and ILoadBalancer with injecting new Db-Service in Lib's PropertyInfoTable and places that construct it
Closed, ResolvedPublic


PropertyInfoTable has a failry standard usage pattern:

$this->loadBalancer = $lbFactory->getMainLB( $databaseName );
public function getWriteConnection(): IDatabase {
	return $this->loadBalancer->getConnectionRef( ILoadBalancer::DB_PRIMARY, [], $this->dbName );

private function getReadConnection(): IDatabase {
	return $this->loadBalancer->getConnectionRef( ILoadBalancer::DB_REPLICA, [], $this->dbName );

Event Timeline

Change 698942 had a related patch set uploaded (by Ladsgroup; author: Ladsgroup):

[mediawiki/extensions/Wikibase@master] Use DomainDb in PropertyInfoTable

Error: Call to undefined method Wikibase\Lib\Rdbms\RepoDomainDbFactory::newForEntityType()


Aha. My localhost was old and this has been removed.

Change 698942 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Use DomainDb in PropertyInfoTable