53 $queryBuilder = FileSelectQueryBuilder::newForFile( $dbr );
55 $res = $queryBuilder->where( $dbr->expr(
'img_name',
'>', $start ) )
57 ->caller( __METHOD__ )->fetchResultSet();
58 foreach ( $res as $row ) {
60 $start = $row->img_name;
61 $file = $repo->newFileFromRow( $row );
62 $path = $file->getPath();
64 $this->
output(
"{$row->img_name}: not locally accessible\n" );
67 $size = $repo->getFileSize( $file->getPath() );
68 if ( $size ===
false ) {
69 $this->
output(
"{$row->img_name}: missing\n" );
73 if ( $size == 0 && $row->img_size != 0 ) {
74 $this->
output(
"{$row->img_name}: truncated, was {$row->img_size}\n" );
78 if ( $size != $row->img_size ) {
79 $this->
output(
"{$row->img_name}: size mismatch DB={$row->img_size}, "
80 .
"actual={$size}\n" );
86 }
while ( $res->numRows() );
88 $this->
output(
"Good images: $numGood/$numImages\n" );