mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
fix
This commit is contained in:
parent
2ae02a4921
commit
9ba94e64f9
@ -936,7 +936,7 @@ void FileCache::removeIfReleasable(bool remove_persistent_files)
|
||||
|
||||
std::lock_guard cache_lock(mutex);
|
||||
|
||||
std::vector<FileSegment *> to_remove;
|
||||
std::vector<FileSegmentPtr> to_remove;
|
||||
for (auto it = main_priority->getLowestPriorityReadIterator(cache_lock); it->valid(); it->next())
|
||||
{
|
||||
const auto & key = it->key();
|
||||
@ -956,7 +956,7 @@ void FileCache::removeIfReleasable(bool remove_persistent_files)
|
||||
|| remove_persistent_files
|
||||
|| allow_to_remove_persistent_segments_from_cache_by_default))
|
||||
{
|
||||
to_remove.emplace_back(file_segment.get());
|
||||
to_remove.emplace_back(file_segment);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user