X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrunBatchedQuery.php;h=2feae02ecacba4de4e42190b48c7ed8573c87e74;hb=d9a965c69d0712567efd68c94a1f38f9cd50056c;hp=af8890509edfaad9fd33c6810734cedd51fc77d4;hpb=27f8aa732e55f0655255152fa22655fa07424c2d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/runBatchedQuery.php b/maintenance/runBatchedQuery.php index af8890509e..2feae02eca 100644 --- a/maintenance/runBatchedQuery.php +++ b/maintenance/runBatchedQuery.php @@ -33,9 +33,9 @@ require_once __DIR__ . '/Maintenance.php'; class BatchedQueryRunner extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = + $this->addDescription( "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."; + "NOTE: You need to set a LIMIT clause yourself." ); } public function execute() { @@ -45,7 +45,7 @@ class BatchedQueryRunner extends Maintenance { $query = $this->getArg(); $n = 1; - $dbw = wfGetDB( DB_MASTER ); + $dbw = $this->getDB( DB_MASTER ); do { $this->output( "Batch $n: " ); $n++;