X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrunBatchedQuery.php;h=3fd9e02bac09ccadb17dd8f1d4a277908cf3b9fc;hb=6505e5f278aae664f78fb8f876c10902d2195231;hp=76340cdb3281bc00048946d197883218eaec05c5;hpb=e92d87c26c408441d8c229fc1e9c7e0bcd93898a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/runBatchedQuery.php b/maintenance/runBatchedQuery.php index 76340cdb32..3fd9e02bac 100644 --- a/maintenance/runBatchedQuery.php +++ b/maintenance/runBatchedQuery.php @@ -33,7 +33,8 @@ require_once __DIR__ . '/Maintenance.php'; class BatchedQueryRunner extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Run a query repeatedly until it affects 0 rows, and wait for slaves in between.\n" . + $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."; } @@ -44,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++;