From 16c8ee509df2f3811198086a119ed786e130a03b Mon Sep 17 00:00:00 2001 From: kssenii Date: Wed, 13 Mar 2024 15:52:30 +0100 Subject: [PATCH] Fix tests --- src/Interpreters/Cache/EvictionCandidates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interpreters/Cache/EvictionCandidates.cpp b/src/Interpreters/Cache/EvictionCandidates.cpp index 1a93c51572e..ddd058833b9 100644 --- a/src/Interpreters/Cache/EvictionCandidates.cpp +++ b/src/Interpreters/Cache/EvictionCandidates.cpp @@ -59,7 +59,7 @@ void EvictionCandidates::evict() ProfileEvents::increment(ProfileEvents::FilesystemCacheEvictedBytes, segment->range().size()); locked_key->removeFileSegment(segment->offset(), segment->lock()); - queue_it->invalidate(); + chassert(queue_it->getEntry()->size == 0); to_evict.pop_back(); }