* @author Aryeh Gregor (Simetrical)
*/
-#$optionsWithArgs = array( 'begin', 'max-slave-lag' );
-
require_once __DIR__ . '/Maintenance.php';
/**
$this->output( " processing..." );
if ( !$dryRun ) {
- $dbw->begin( __METHOD__ );
+ $this->beginTransaction( $dbw, __METHOD__ );
}
foreach ( $res as $row ) {
$title = Title::newFromRow( $row );
}
}
if ( !$dryRun ) {
- $dbw->commit( __METHOD__ );
+ $this->commitTransaction( $dbw, __METHOD__ );
}
$count += $res->numRows();