mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fix assert
This commit is contained in:
parent
626f49df4c
commit
8c1dee30a9
@ -399,6 +399,15 @@ CachedOnDiskReadBufferFromFile::ReadFromFileSegmentStatePtr CachedOnDiskReadBuff
|
|||||||
auto downloader_id = file_segment.getOrSetDownloader();
|
auto downloader_id = file_segment.getOrSetDownloader();
|
||||||
if (downloader_id == FileSegment::getCallerId())
|
if (downloader_id == FileSegment::getCallerId())
|
||||||
{
|
{
|
||||||
|
SCOPE_EXIT(
|
||||||
|
{
|
||||||
|
if (result->read_type != ReadType::REMOTE_FS_READ_AND_PUT_IN_CACHE
|
||||||
|
&& file_segment.isDownloader())
|
||||||
|
{
|
||||||
|
file_segment.resetDownloader();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
if (canStartFromCache(offset, file_segment))
|
if (canStartFromCache(offset, file_segment))
|
||||||
{
|
{
|
||||||
/// segment{k}
|
/// segment{k}
|
||||||
|
Loading…
Reference in New Issue
Block a user