dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert OutputHandler functions to a class
[lhc/web/wiklou.git]
/
maintenance
/
purgeChangedPages.php
diff --git
a/maintenance/purgeChangedPages.php
b/maintenance/purgeChangedPages.php
index
cf65c69
..
22020e7
100644
(file)
--- 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
$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' ],
$res = $dbr->select(
[ 'page', 'revision' ],
@@
-190,5
+190,5
@@
class PurgeChangedPages extends Maintenance {
}
}
}
}
-$maintClass =
"PurgeChangedPages"
;
+$maintClass =
PurgeChangedPages::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;