Fix output of RecountCategories::doWork()
authorReedy <reedy@wikimedia.org>
Sun, 8 Mar 2020 23:34:05 +0000 (23:34 +0000)
committerReedy <reedy@wikimedia.org>
Mon, 9 Mar 2020 00:59:52 +0000 (00:59 +0000)
Display actual cat_id starting at, not the batch size

Also, adjust message per option description:
'Only recount categories with cat_id greater than the given value'

Bug: T247215
Follows-Up: I8b3e9ca1f42b7c49ee57f17b88ca2fc7b404f342
Change-Id: I09844c922a4350178a67e526dd025eb831489939
(cherry picked from commit e3c9741aacdcc8e6ca4bfd17526119c2e9709082)

maintenance/recountCategories.php

index 8ec648f..7e37fcb 100644 (file)
@@ -104,7 +104,7 @@ TEXT
 
        protected function doWork() {
                $this->output( "Finding up to {$this->getBatchSize()} drifted rows " .
-                       "starting at cat_id {$this->getBatchSize()}...\n" );
+                       "greater than cat_id {$this->minimumId}...\n" );
 
                $countingConds = [ 'cl_to = cat_title' ];
                if ( $this->mode === 'subcats' ) {