Merge "Special:Preferences: Use OOjs UI"
[lhc/web/wiklou.git] / maintenance / purgeChangedPages.php
index cf65c69..cce9b03 100644 (file)
@@ -79,7 +79,7 @@ class PurgeChangedPages extends Maintenance {
                $stuckCount = 0; // loop breaker
                while ( true ) {
                        // Adjust bach size if we are stuck in a second that had many changes
-                       $bSize = $this->mBatchSize + ( $stuckCount * $this->mBatchSize );
+                       $bSize = ( $stuckCount + 1 ) * $this->getBatchSize();
 
                        $res = $dbr->select(
                                [ 'page', 'revision' ],