class OrphanStats extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription =
- "Show some statistics on the blob_orphans table, created with trackBlobs.php";
+ $this->addDescription(
+ "Show some statistics on the blob_orphans table, created with trackBlobs.php" );
}
protected function &getDB( $cluster, $groups = array(), $wiki = false ) {
}
public function execute() {
- $dbr = wfGetDB( DB_SLAVE );
+ $dbr = $this->getDB( DB_SLAVE );
if ( !$dbr->tableExists( 'blob_orphans' ) ) {
$this->error( "blob_orphans doesn't seem to exist, need to run trackBlobs.php first", true );
}