Bug #80061 » 80061_typo3v7.patch
typo3/sysext/core/Classes/Resource/Index/FileIndexRepository.php | ||
---|---|---|
return $this->getDatabaseConnection()->exec_SELECTgetRows(
|
||
implode(',', $this->fields),
|
||
$this->table,
|
||
'tstamp > last_indexed AND storage = ' . (int)$storage->getUid(),
|
||
'tstamp > last_indexed AND storage = ' . (int)$storage->getUid() . ' AND missing = 0',
|
||
'',
|
||
'tstamp ASC',
|
||
(int)$limit > 0 ? (int)$limit : ''
|
typo3/sysext/core/Classes/Resource/Index/Indexer.php | ||
---|---|---|
{
|
||
$fileIndexRecords = $this->getFileIndexRepository()->findInStorageWithIndexOutstanding($this->storage, $maximumFileCount);
|
||
foreach ($fileIndexRecords as $indexRecord) {
|
||
$fileObject = $this->getResourceFactory()->getFileObject($indexRecord['uid'], $indexRecord);
|
||
$this->extractMetaData($fileObject);
|
||
try {
|
||
$fileObject = $this->getResourceFactory()->getFileObject($indexRecord['uid'], $indexRecord);
|
||
$this->extractMetaData($fileObject);
|
||
} catch (\TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException $e) {
|
||
// mark file as missing, continue with next record
|
||
$this->getFileIndexRepository()->markFileAsMissing($indexRecord['uid']);
|
||
}
|
||
}
|
||
}
|
||