dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mediawiki.Uri.test: Clean up
[lhc/web/wiklou.git]
/
maintenance
/
populateCategory.php
diff --git
a/maintenance/populateCategory.php
b/maintenance/populateCategory.php
index
ce0765c
..
ae54d69
100644
(file)
--- a/
maintenance/populateCategory.php
+++ b/
maintenance/populateCategory.php
@@
-1,6
+1,6
@@
<?php
/**
<?php
/**
- *
Script to populat
e category table.
+ *
Populate th
e category table.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-22,11
+22,13
@@
* @author Simetrical
*/
* @author Simetrical
*/
-$optionsWithArgs = array( 'begin', 'max-slave-lag', 'throttle' );
-
-require_once( dirname( __FILE__ ) . '/Maintenance.php' );
-
+require_once( __DIR__ . '/Maintenance.php' );
+/**
+ * Mainteance script to populate the category table.
+ *
+ * @ingroup Maintenance
+ */
class PopulateCategory extends Maintenance {
const REPORTING_INTERVAL = 1000;
class PopulateCategory extends Maintenance {
const REPORTING_INTERVAL = 1000;
@@
-81,7
+83,6
@@
TEXT;
}
}
}
}
- $maxlag = intval( $maxlag );
$throttle = intval( $throttle );
if ( $begin !== '' ) {
$where = 'cl_to > ' . $dbw->addQuotes( $begin );
$throttle = intval( $throttle );
if ( $begin !== '' ) {
$where = 'cl_to > ' . $dbw->addQuotes( $begin );
@@
-119,7
+120,7
@@
TEXT;
++$i;
if ( !( $i % self::REPORTING_INTERVAL ) ) {
$this->output( "$name\n" );
++$i;
if ( !( $i % self::REPORTING_INTERVAL ) ) {
$this->output( "$name\n" );
- wfWaitForSlaves(
$maxlag
);
+ wfWaitForSlaves();
}
usleep( $throttle * 1000 );
}
}
usleep( $throttle * 1000 );
}