mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fix
This commit is contained in:
parent
0737aef472
commit
4f53080921
@ -88,6 +88,11 @@ void FileSegment::resetDownloader()
|
||||
if (getCallerId() != downloader_id)
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "Downloader can be reset only by downloader");
|
||||
|
||||
if (downloaded_size == range().size())
|
||||
setDownloaded(segment_lock);
|
||||
else
|
||||
download_state = State::PARTIALLY_DOWNLOADED;
|
||||
|
||||
downloader_id.clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user