X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FresetUserTokens.php;h=710198b870d1cd668566a5efe35e540817988428;hb=b5d5ba64dbd22c09e3cdfd10ef90bb29829c3c1e;hp=481da980da02e0a8074a801b304afa0ec08602c0;hpb=00ac2882bbfa81c226250efc06586a5ab50bf3f8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/resetUserTokens.php b/maintenance/resetUserTokens.php index 481da980da..710198b870 100644 --- a/maintenance/resetUserTokens.php +++ b/maintenance/resetUserTokens.php @@ -64,7 +64,7 @@ class ResetUserTokens extends Maintenance { $this->output( "\n" ); $this->output( "Abort with control-c in the next five seconds " . "(skip this countdown with --nowarn) ... " ); - wfCountDown( 5 ); + $this->countDown( 5 ); } // We list user by user_id from one of the replica DBs @@ -80,7 +80,7 @@ class ResetUserTokens extends Maintenance { $maxid = $dbr->selectField( 'user', 'MAX(user_id)', [], __METHOD__ ); $min = 0; - $max = $this->mBatchSize; + $max = $this->getBatchSize(); do { $result = $dbr->select( 'user', @@ -99,7 +99,7 @@ class ResetUserTokens extends Maintenance { } $min = $max; - $max = $min + $this->mBatchSize; + $max = $min + $this->getBatchSize(); wfWaitForSlaves(); } while ( $min <= $maxid );