X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FremoveInvalidEmails.php;h=91025bf109ffb9c84d12e80cb81c2c4b4879f204;hb=57fb649603a94ea8244c50be0070d3074ca14d6e;hp=0f67317dfb344d4ffcce64ab666e07952073ced6;hpb=3071f1fad720f1773864621158a0c59b73124896;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 = [];