X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckUsernames.php;h=e6d95477c374089a8bf56175beeabbd35ddcedc2;hb=3e4ad53f854847947ffbde0d8c72145d7fd38fc7;hp=1b9a1ccb418f9ae7ee2e9242825723b8d1b0fd34;hpb=4b069cd1b88877fbb253af8780e358d96ba2587c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkUsernames.php b/maintenance/checkUsernames.php index 1b9a1ccb41..e6d95477c3 100644 --- a/maintenance/checkUsernames.php +++ b/maintenance/checkUsernames.php @@ -40,18 +40,18 @@ class CheckUsernames extends Maintenance { } function execute() { - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $maxUserId = 0; do { $res = $dbr->select( 'user', - array( 'user_id', 'user_name' ), - array( 'user_id > ' . $maxUserId ), + [ 'user_id', 'user_name' ], + [ 'user_id > ' . $maxUserId ], __METHOD__, - array( + [ 'ORDER BY' => 'user_id', 'LIMIT' => $this->mBatchSize, - ) + ] ); foreach ( $res as $row ) {