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 "objectcache: add BagOStuff comment additions about access scope"
[lhc/web/wiklou.git]
/
maintenance
/
resetUserTokens.php
diff --git
a/maintenance/resetUserTokens.php
b/maintenance/resetUserTokens.php
index
1c8b4b9
..
284db2c
100644
(file)
--- a/
maintenance/resetUserTokens.php
+++ b/
maintenance/resetUserTokens.php
@@
-68,7
+68,6
@@
class ResetUserTokens extends Maintenance {
}
// We list user by user_id from one of the replica DBs
}
// We list user by user_id from one of the replica DBs
- // We list user by user_id from one of the slave database
$dbr = $this->getDB( DB_REPLICA );
$where = [];
$dbr = $this->getDB( DB_REPLICA );
$where = [];
@@
-80,7
+79,7
@@
class ResetUserTokens extends Maintenance {
$maxid = $dbr->selectField( 'user', 'MAX(user_id)', [], __METHOD__ );
$min = 0;
$maxid = $dbr->selectField( 'user', 'MAX(user_id)', [], __METHOD__ );
$min = 0;
- $max = $this->
mBatchSize
;
+ $max = $this->
getBatchSize()
;
do {
$result = $dbr->select( 'user',
do {
$result = $dbr->select( 'user',
@@
-99,7
+98,7
@@
class ResetUserTokens extends Maintenance {
}
$min = $max;
}
$min = $max;
- $max = $min + $this->
mBatchSize
;
+ $max = $min + $this->
getBatchSize()
;
wfWaitForSlaves();
} while ( $min <= $maxid );
wfWaitForSlaves();
} while ( $min <= $maxid );
@@
-116,5
+115,5
@@
class ResetUserTokens extends Maintenance {
}
}
}
}
-$maintClass =
"ResetUserTokens"
;
+$maintClass =
ResetUserTokens::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;