Page MenuHomePhabricator

Replace ILBFactory and ILoadBalancer with injecting new Db-Service in Repo's PurgeEntityDataJob
Closed, ResolvedPublic

Description

The usage of PurgeEntityDataJob seems to be mostly standard:

$this->lbFactory->waitForReplication( [
	'domain' => $this->lbFactory->getLocalDomainID(),
] );
$dbr = $this->lbFactory->getMainLB()->getConnection( ILoadBalancer::DB_REPLICA );

Event Timeline

Change 693442 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] Create database connection service abstraction

https://gerrit.wikimedia.org/r/693442

Change 693442 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Create database service abstraction

https://gerrit.wikimedia.org/r/693442