public function __construct() {
parent::__construct();
$this->mDescription = "";
-
}
-
+
+ public function getDbType() {
+ return Maintenance::DB_ADMIN;
+ }
+
public function execute() {
$this->slaveIndexes = array();
for ( $i = 1; $i < wfGetLB()->getServerCount(); $i++ ) {
if ( $this->hasArg() ) {
$this->desyncFixPage( $this->getArg() );
} else {
- $dbw = wfGetDB( DB_MASTER );
- $maxPage = $dbw->selectField( 'page', 'MAX(page_id)', false, __METHOD__ );
$corrupt = $this->findPageLatestCorruption();
foreach ( $corrupt as $id => $dummy ) {
$this->desyncFixPage( $id );
}
$maintClass = "FixSlaveDesync";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );