Update FileCache.cpp

This commit is contained in:
Kseniia Sumarokova 2023-04-27 13:03:41 +02:00 committed by GitHub
parent ebc7e30fdf
commit 9325787884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -550,6 +550,9 @@ FileCache::FileSegmentCell * FileCache::addCell(
}
catch (...)
{
/// Avoid errors like
/// std::__1::__fs::filesystem::filesystem_error: filesystem error: in create_directories: No space left on device
/// and mark file segment with SKIP_CACHE state
tryLogCurrentException(__PRETTY_FUNCTION__);
result_state = FileSegment::State::SKIP_CACHE;
}