X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FpopulateCategory.php;h=65d272b30392238c7db1ba0ed4f6c91949646914;hb=b14d581dab129f00135a0136ef2727ce0f8f9282;hp=ab0ca1ede42548f87427ff7ab34d4219c3dca3c0;hpb=9f3dd6ceb2193056eea1b334bfca67d546594df1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateCategory.php b/maintenance/populateCategory.php index ab0ca1ede4..65d272b303 100644 --- a/maintenance/populateCategory.php +++ b/maintenance/populateCategory.php @@ -25,7 +25,7 @@ require_once __DIR__ . '/Maintenance.php'; /** - * Mainteance script to populate the category table. + * Maintenance script to populate the category table. * * @ingroup Maintenance */ @@ -57,12 +57,6 @@ TEXT; false, true ); - $this->addOption( - 'max-slave-lag', - 'If slave lag exceeds this many seconds, wait until it drops before continuing. Default: 10', - false, - true - ); $this->addOption( 'throttle', 'Wait this many milliseconds after each category. Default: 0', @@ -74,13 +68,9 @@ TEXT; public function execute() { $begin = $this->getOption( 'begin', '' ); - $maxSlaveLag = $this->getOption( 'max-slave-lag', 10 ); $throttle = $this->getOption( 'throttle', 0 ); $force = $this->getOption( 'force', false ); - $this->doPopulateCategory( $begin, $maxSlaveLag, $throttle, $force ); - } - private function doPopulateCategory( $begin, $maxlag, $throttle, $force ) { $dbw = wfGetDB( DB_MASTER ); if ( !$force ) {