X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FremoveInvalidEmails.php;h=91025bf109ffb9c84d12e80cb81c2c4b4879f204;hb=ee3f8a60ef877efe86ef07e0f96060a0930532c6;hp=0f67317dfb344d4ffcce64ab666e07952073ced6;hpb=40a628a501fc05bb00e834fe359ca4061925f320;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/removeInvalidEmails.php b/maintenance/removeInvalidEmails.php index 0f67317dfb..91025bf109 100644 --- a/maintenance/removeInvalidEmails.php +++ b/maintenance/removeInvalidEmails.php @@ -23,7 +23,7 @@ class RemoveInvalidEmails extends Maintenance { } public function execute() { $this->commit = $this->hasOption( 'commit' ); - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $dbw = $this->getDB( DB_MASTER ); $lastId = 0; do { @@ -36,7 +36,7 @@ class RemoveInvalidEmails extends Maintenance { 'user_email_authenticated IS NULL' ], __METHOD__, - [ 'LIMIT' => $this->mBatchSize ] + [ 'LIMIT' => $this->getBatchSize() ] ); $count = $rows->numRows(); $badIds = [];