X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckUsernames.php;h=e6d95477c374089a8bf56175beeabbd35ddcedc2;hb=70f51388a6d4f1e50af884e37ea33681880b72d8;hp=1b9a1ccb418f9ae7ee2e9242825723b8d1b0fd34;hpb=1f2706b49939bfc85ec5abc8ccc24aacd938eed0;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 ) {