Followup r87225
[lhc/web/wiklou.git] / maintenance / deleteSelfExternals.php
index 783a7dd..4e9f54f 100644 (file)
@@ -39,7 +39,7 @@ class DeleteSelfExternals extends Maintenance {
                $this->output( "Deleting self externals from $wgServer\n" );
                $db = wfGetDB( DB_MASTER );
                while ( 1 ) {
-                       wfWaitForSlaves( 2 );
+                       wfWaitForSlaves();
                        $db->commit();
                        $q = $db->limitResult( "DELETE /* deleteSelfExternals */ FROM externallinks WHERE el_to"
                                . $db->buildLike( $wgServer . '/', $db->anyString() ), $this->mBatchSize );
@@ -51,4 +51,4 @@ class DeleteSelfExternals extends Maintenance {
 }
 
 $maintClass = "DeleteSelfExternals";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );