X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2ForphanStats.php;h=6a04b98a03dea35f3d16649ae14089b9d19b06cf;hb=5a451fd01be397db3209c1881a335423706da5c2;hp=3866be70d09011896e7a2fa621f5c6852d79fc7e;hpb=d15ac3bd518c1e270cbd8c4f878840ad05281a4c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/orphanStats.php b/maintenance/storage/orphanStats.php index 3866be70d0..6a04b98a03 100644 --- a/maintenance/storage/orphanStats.php +++ b/maintenance/storage/orphanStats.php @@ -38,11 +38,11 @@ class OrphanStats extends Maintenance { "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() {