public function execute() {
$start = '';
- $dbr = $this->getDB( DB_SLAVE );
+ $dbr = $this->getDB( DB_REPLICA );
$numImages = 0;
$numGood = 0;
$repo = RepoGroup::singleton()->getLocalRepo();
do {
- $res = $dbr->select( 'image', '*', [ 'img_name > ' . $dbr->addQuotes( $start ) ],
+ $res = $dbr->select( 'image', LocalFile::selectFields(),
+ [ 'img_name > ' . $dbr->addQuotes( $start ) ],
__METHOD__, [ 'LIMIT' => $this->mBatchSize ] );
foreach ( $res as $row ) {
$numImages++;