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
Page title is not used in Selenium tests
[lhc/web/wiklou.git]
/
maintenance
/
resetUserTokens.php
diff --git
a/maintenance/resetUserTokens.php
b/maintenance/resetUserTokens.php
index
131a569
..
710198b
100644
(file)
--- a/
maintenance/resetUserTokens.php
+++ b/
maintenance/resetUserTokens.php
@@
-64,11
+64,12
@@
class ResetUserTokens extends Maintenance {
$this->output( "\n" );
$this->output( "Abort with control-c in the next five seconds "
. "(skip this countdown with --nowarn) ... " );
$this->output( "\n" );
$this->output( "Abort with control-c in the next five seconds "
. "(skip this countdown with --nowarn) ... " );
-
wfC
ountDown( 5 );
+
$this->c
ountDown( 5 );
}
}
+ // We list user by user_id from one of the replica DBs
// We list user by user_id from one of the slave database
// We list user by user_id from one of the slave database
- $dbr = $this->getDB( DB_
SLAVE
);
+ $dbr = $this->getDB( DB_
REPLICA
);
$where = [];
if ( $this->nullsOnly ) {
$where = [];
if ( $this->nullsOnly ) {
@@
-79,7
+80,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',
@@
-98,7
+99,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 );