"Show some statistics on the blob_orphans table, created with trackBlobs.php" );
}
- protected function &getDB( $cluster, $groups = [], $wiki = false ) {
+ protected function getDB( $cluster, $groups = [], $wiki = false ) {
$lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
$lb = $lbFactory->getExternalLB( $cluster );
- return $lb->getConnection( DB_REPLICA );
+ return $lb->getMaintenanceConnectionRef( DB_REPLICA );
}
public function execute() {