| 1346 | } |
| 1347 | |
| 1348 | ObjectInfoPtr StorageObjectStorageSource::GlobIterator::next(size_t processor) |
| 1349 | { |
| 1350 | std::lock_guard lock(next_mutex); |
| 1351 | auto object_info = nextUnlocked(processor); |
| 1352 | if (first_iteration && !object_info && throw_on_zero_files_match) |
| 1353 | { |
| 1354 | throw Exception(ErrorCodes::FILE_DOESNT_EXIST, |
| 1355 | "Can not match any files with path {}", |
| 1356 | configuration->getPathForRead().path); |
| 1357 | } |
| 1358 | first_iteration = false; |
| 1359 | return object_info; |
| 1360 | } |
| 1361 | |
| 1362 | ObjectInfoPtr StorageObjectStorageSource::GlobIterator::nextUnlocked(size_t /* processor */) |
| 1363 | { |
no test coverage detected