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
Make redirect update in refreshLinks.php bypass the redirect table
[lhc/web/wiklou.git]
/
maintenance
/
runBatchedQuery.php
diff --git
a/maintenance/runBatchedQuery.php
b/maintenance/runBatchedQuery.php
index
9a6b638
..
e113916
100644
(file)
--- a/
maintenance/runBatchedQuery.php
+++ b/
maintenance/runBatchedQuery.php
@@
-19,11
+19,17
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
+ * @file
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-require_once(
dirname( __FILE__ )
. '/Maintenance.php' );
+require_once(
__DIR__
. '/Maintenance.php' );
+/**
+ * Maintenance script to run a database query in batches and wait for slaves.
+ *
+ * @ingroup Maintenance
+ */
class BatchedQueryRunner extends Maintenance {
public function __construct() {
parent::__construct();
class BatchedQueryRunner extends Maintenance {
public function __construct() {
parent::__construct();
@@
-36,7
+42,6
@@
class BatchedQueryRunner extends Maintenance {
$this->error( "No query specified. Specify the query as a command line parameter.", true );
$query = $this->getArg();
$this->error( "No query specified. Specify the query as a command line parameter.", true );
$query = $this->getArg();
- $wait = $this->getOption( 'wait', 5 );
$n = 1;
$dbw = wfGetDB( DB_MASTER );
do {
$n = 1;
$dbw = wfGetDB( DB_MASTER );
do {