This commit is contained in:
kssenii 2023-10-17 19:19:19 +02:00
parent d837aa675f
commit 5d8b1cea91
2 changed files with 2 additions and 1 deletions

View File

@ -347,7 +347,7 @@ void FileCache::fillHolesWithEmptyFileSegments(
++it;
}
if (file_segments.size() >= file_segments_limit)
if (file_segments_limit && file_segments.size() >= file_segments_limit)
return;
if (current_pos <= range.right)

View File

@ -22,6 +22,7 @@ SETTINGS min_bytes_for_wide_part = 0,
type = cache,
max_size = '128Mi',
max_file_segment_size = '10Ki',
boundary_alignment = '5Ki',
path = '${CLICKHOUSE_TEST_UNIQUE_NAME}',
cache_on_write_operations = 1,
enable_filesystem_query_cache_limit = 1,