Merge "Depedency inject remappedTableName() map via MWLBFactory"
[lhc/web/wiklou.git] / maintenance / runBatchedQuery.php
index 3fd9e02..a5e7a2f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Run a database query in batches and wait for slaves. This is used on large
+ * Run a database query in batches and wait for replica DBs. This is used on large
  * wikis to prevent replication lag from going through the roof when executing
  * large write queries.
  *
 require_once __DIR__ . '/Maintenance.php';
 
 /**
- * Maintenance script to run a database query in batches and wait for slaves.
+ * Maintenance script to run a database query in batches and wait for replica DBs.
  *
  * @ingroup Maintenance
  */
 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" .
-                               "NOTE: You need to set a LIMIT clause yourself.";
+               $this->addDescription(
+                       "Run a query repeatedly until it affects 0 rows, and wait for replica DBs in between.\n" .
+                               "NOTE: You need to set a LIMIT clause yourself." );
        }
 
        public function execute() {