Add unit test for bug 32888
[lhc/web/wiklou.git] / maintenance / runBatchedQuery.php
index e641db8..83e0cab 100644 (file)
@@ -36,16 +36,15 @@ class BatchedQueryRunner extends Maintenance {
                        $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 );
+               $dbw = wfGetDB( DB_MASTER );
                do {
                        $this->output( "Batch $n: " );
                        $n++;
                        $dbw->query( $query, __METHOD__ );
                        $affected = $dbw->affectedRows();
                        $this->output( "$affected rows\n" );
-                       wfWaitForSlaves_masterPos();
+                       wfWaitForSlaves();
                } while ( $affected > 0 );
        }