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
Merge "Fix sessionfailure i18n message during authentication"
[lhc/web/wiklou.git]
/
maintenance
/
purgeList.php
diff --git
a/maintenance/purgeList.php
b/maintenance/purgeList.php
index
21d1169
..
16a62f4
100644
(file)
--- a/
maintenance/purgeList.php
+++ b/
maintenance/purgeList.php
@@
-86,7
+86,7
@@
class PurgeList extends Maintenance {
* @param int|bool $namespace
*/
private function purgeNamespace( $namespace = false ) {
* @param int|bool $namespace
*/
private function purgeNamespace( $namespace = false ) {
- $dbr = $this->getDB( DB_
SLAVE
);
+ $dbr = $this->getDB( DB_
REPLICA
);
$startId = 0;
if ( $namespace === false ) {
$conds = [];
$startId = 0;
if ( $namespace === false ) {
$conds = [];
@@
-99,7
+99,7
@@
class PurgeList extends Maintenance {
$conds + [ 'page_id > ' . $dbr->addQuotes( $startId ) ],
__METHOD__,
[
$conds + [ 'page_id > ' . $dbr->addQuotes( $startId ) ],
__METHOD__,
[
- 'LIMIT' => $this->
mBatchSize
,
+ 'LIMIT' => $this->
getBatchSize()
,
'ORDER BY' => 'page_id'
]
'ORDER BY' => 'page_id'
]
@@
-143,5
+143,5
@@
class PurgeList extends Maintenance {
}
}
}
}
-$maintClass =
"PurgeList"
;
+$maintClass =
PurgeList::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;