mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Update Metadata.cpp
This commit is contained in:
parent
00e1c5cf0b
commit
e18ff6e56b
@ -717,7 +717,7 @@ void CacheMetadata::downloadImpl(FileSegment & file_segment, std::optional<Memor
|
||||
if (downloaded_size >= max_file_segment_size)
|
||||
break;
|
||||
|
||||
if (download_max_file_segment_size + size > max_file_segment_size)
|
||||
if (downloaded_size + size > max_file_segment_size)
|
||||
{
|
||||
/// Do not download more than download_max_file_segment_size
|
||||
/// because we want to leave right boundary of file segment aligned.
|
||||
|
Loading…
Reference in New Issue
Block a user