dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add namespace to action=info page"
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
orphanStats.php
diff --git
a/maintenance/storage/orphanStats.php
b/maintenance/storage/orphanStats.php
index
9c1b538
..
219b47c
100644
(file)
--- a/
maintenance/storage/orphanStats.php
+++ b/
maintenance/storage/orphanStats.php
@@
-23,6
+23,8
@@
require_once __DIR__ . '/../Maintenance.php';
require_once __DIR__ . '/../Maintenance.php';
+use MediaWiki\MediaWikiServices;
+
/**
* Maintenance script that shows some statistics on the blob_orphans table,
* created with trackBlobs.php.
/**
* Maintenance script that shows some statistics on the blob_orphans table,
* created with trackBlobs.php.
@@
-37,7
+39,8
@@
class OrphanStats extends Maintenance {
}
protected function &getDB( $cluster, $groups = [], $wiki = false ) {
}
protected function &getDB( $cluster, $groups = [], $wiki = false ) {
- $lb = wfGetLBFactory()->getExternalLB( $cluster );
+ $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
+ $lb = $lbFactory->getExternalLB( $cluster );
return $lb->getConnection( DB_REPLICA );
}
return $lb->getConnection( DB_REPLICA );
}