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 "Maintenance: add fatalError() method"
[lhc/web/wiklou.git]
/
maintenance
/
removeInvalidEmails.php
diff --git
a/maintenance/removeInvalidEmails.php
b/maintenance/removeInvalidEmails.php
index
0f67317
..
91025bf
100644
(file)
--- a/
maintenance/removeInvalidEmails.php
+++ b/
maintenance/removeInvalidEmails.php
@@
-23,7
+23,7
@@
class RemoveInvalidEmails extends Maintenance {
}
public function execute() {
$this->commit = $this->hasOption( 'commit' );
}
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 {
$dbw = $this->getDB( DB_MASTER );
$lastId = 0;
do {
@@
-36,7
+36,7
@@
class RemoveInvalidEmails extends Maintenance {
'user_email_authenticated IS NULL'
],
__METHOD__,
'user_email_authenticated IS NULL'
],
__METHOD__,
- [ 'LIMIT' => $this->
mBatchSize
]
+ [ 'LIMIT' => $this->
getBatchSize()
]
);
$count = $rows->numRows();
$badIds = [];
);
$count = $rows->numRows();
$badIds = [];