From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- maintenance/runBatchedQuery.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'maintenance/runBatchedQuery.php') diff --git a/maintenance/runBatchedQuery.php b/maintenance/runBatchedQuery.php index dd3680c9..9a6b6383 100644 --- a/maintenance/runBatchedQuery.php +++ b/maintenance/runBatchedQuery.php @@ -29,7 +29,6 @@ class BatchedQueryRunner extends Maintenance { parent::__construct(); $this->mDescription = "Run a query repeatedly until it affects 0 rows, and wait for slaves in between.\n" . "NOTE: You need to set a LIMIT clause yourself."; - $this->addOption( 'wait', "Wait for replication lag to go down to this value. Default: 5", false, true ); } public function execute() { @@ -39,14 +38,14 @@ class BatchedQueryRunner extends Maintenance { $query = $this->getArg(); $wait = $this->getOption( 'wait', 5 ); $n = 1; - $dbw = wfGetDb( DB_MASTER ); + $dbw = wfGetDB( DB_MASTER ); do { $this->output( "Batch $n: " ); $n++; $dbw->query( $query, __METHOD__ ); $affected = $dbw->affectedRows(); $this->output( "$affected rows\n" ); - wfWaitForSlaves( $wait ); + wfWaitForSlaves(); } while ( $affected > 0 ); } -- cgit v1.2.2