Skip to content

Commit 56222dd

Browse files
authored
Merge pull request ClickHouse#56872 from ClickHouse/filecache-call-assertions-more-often
Call cache check a bit more often
2 parents 535a75b + 5ca8419 commit 56222dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Interpreters/Cache/FileCache.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,11 @@ void FileCache::removePathIfExists(const String & path)
801801
void FileCache::removeAllReleasable()
802802
{
803803
assertInitialized();
804+
805+
#ifdef ABORT_ON_LOGICAL_ERROR
806+
assertCacheCorrectness();
807+
#endif
808+
804809
metadata.removeAllKeys(/* if_releasable */true);
805810

806811
if (stash)

0 commit comments

Comments
 (0)