Removed code lost in r93105, wtf.
[lhc/web/wiklou.git] / maintenance / populateCategory.php
index 71ba645..4e9c44c 100644 (file)
@@ -81,7 +81,6 @@ TEXT;
                        }
                }
 
-               $maxlag = intval( $maxlag );
                $throttle = intval( $throttle );
                if ( $begin !== '' ) {
                        $where = 'cl_to > ' . $dbw->addQuotes( $begin );
@@ -119,7 +118,7 @@ TEXT;
                        ++$i;
                        if ( !( $i % self::REPORTING_INTERVAL ) ) {
                                $this->output( "$name\n" );
-                               wfWaitForSlaves( $maxlag );
+                               wfWaitForSlaves();
                        }
                        usleep( $throttle * 1000 );
                }
@@ -141,4 +140,4 @@ TEXT;
 }
 
 $maintClass = "PopulateCategory";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );