X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeChangedPages.php;h=cce9b036a5f78255349531ed382692bcc8c75f95;hb=99e0e6790295a17e081faf98f35cf08144568cf0;hp=cf65c693153a24d83d882137d961b21ad0b913fb;hpb=237d3271fd313ebe09858a5c442a91216a7b61cf;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeChangedPages.php b/maintenance/purgeChangedPages.php index cf65c69315..cce9b036a5 100644 --- a/maintenance/purgeChangedPages.php +++ b/maintenance/purgeChangedPages.php @@ -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' ],