mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
Add missing finalize
This commit is contained in:
parent
632c6c0cb7
commit
c8f6d6ada9
@ -70,11 +70,14 @@ void EvictionCandidates::finalize(FileCacheQueryLimit::QueryContext * query_cont
|
||||
{
|
||||
for (const auto & it : invalidated_queue_entries)
|
||||
{
|
||||
/// Remove entry from per query priority queue.
|
||||
if (query_context)
|
||||
{
|
||||
const auto & entry = it->getEntry();
|
||||
query_context->remove(entry->key, entry->offset, lock);
|
||||
}
|
||||
|
||||
/// Remove entry from main priority queue.
|
||||
it->remove(lock);
|
||||
}
|
||||
|
||||
|
@ -218,6 +218,7 @@ void SLRUFileCachePriority::increasePriority(SLRUIterator & iterator, const Cach
|
||||
}
|
||||
/// Make space for "downgrade" candidates.
|
||||
eviction_candidates.evict();
|
||||
eviction_candidates.finalize(nullptr, lock);
|
||||
}
|
||||
|
||||
/// All checks passed, now we can move downgrade candidates to
|
||||
|
Loading…
Reference in New Issue
Block a user