Merge r86398 into the old wfWaitForSlaves. Update core calls.
[lhc/web/wiklou.git] / maintenance / runBatchedQuery.php
index dd3680c..8d1b53e 100644 (file)
@@ -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() {
@@ -46,7 +45,7 @@ class BatchedQueryRunner extends Maintenance {
                        $dbw->query( $query, __METHOD__ );
                        $affected = $dbw->affectedRows();
                        $this->output( "$affected rows\n" );
-                       wfWaitForSlaves( $wait );
+                       wfWaitForSlaves();
                } while ( $affected > 0 );
        }