'user',
'user_id',
array(
- 'user_id >' . $dbw->addQuotes( $lastId ),
+ 'user_id > ' . $dbw->addQuotes( $lastId ),
'user_registration IS NULL'
),
__METHOD__,
array(
'LIMIT' => $this->mBatchSize,
- 'ORDER BY user_id ASC',
+ 'ORDER BY' => 'user_id',
)
);
foreach ( $res as $row ) {
__METHOD__
);
// Update
- if ( $timestamp !== false ) {
+ if ( $timestamp !== null ) {
$dbw->update(
'user',
array( 'user_registration' => $timestamp ),
$this->output( "Waiting for slaves..." );
wfWaitForSlaves();
$this->output( " done.\n" );
- } while ( $res->numRows() );
+ } while ( $res->numRows() >= $this->mBatchSize );
}
}