mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-05 08:00:51 +00:00
polymorphic parts (development)
This commit is contained in:
parent
94abf3691c
commit
43b4c4c5f4
@ -108,13 +108,13 @@ void MergeTreeReaderStream::initMarksLoader()
|
||||
if (marks_loader.initialized())
|
||||
return;
|
||||
|
||||
std::string mrk_path = index_granularity_info->getMarksFilePath(path_prefix);
|
||||
|
||||
auto load = [&]() -> MarkCache::MappedPtr
|
||||
auto load = [this]() -> MarkCache::MappedPtr
|
||||
{
|
||||
/// Memory for marks must not be accounted as memory usage for query, because they are stored in shared cache.
|
||||
auto temporarily_disable_memory_tracker = getCurrentMemoryTrackerActionLock();
|
||||
|
||||
std::string mrk_path = index_granularity_info->getMarksFilePath(path_prefix);
|
||||
|
||||
size_t file_size = Poco::File(mrk_path).getSize();
|
||||
size_t expected_file_size = index_granularity_info->mark_size_in_bytes * marks_count;
|
||||
if (expected_file_size != file_size)
|
||||
@ -150,6 +150,7 @@ void MergeTreeReaderStream::initMarksLoader()
|
||||
return res;
|
||||
};
|
||||
|
||||
auto mrk_path = index_granularity_info->getMarksFilePath(path_prefix);
|
||||
marks_loader = MergeTreeMarksLoader{mark_cache, mrk_path, load, save_marks_in_cache};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user