diff --git a/src/Interpreters/Cache/FileCache.cpp b/src/Interpreters/Cache/FileCache.cpp index 6d6822b7ad5..51f725e1699 100644 --- a/src/Interpreters/Cache/FileCache.cpp +++ b/src/Interpreters/Cache/FileCache.cpp @@ -881,18 +881,12 @@ void FileCache::iterate(IterateFunc && func, const UserID & user_id) void FileCache::removeKey(const Key & key, const UserID & user_id) { assertInitialized(); -#ifdef ABORT_ON_LOGICAL_ERROR - assertCacheCorrectness(); -#endif metadata.removeKey(key, /* if_exists */false, /* if_releasable */true, user_id); } void FileCache::removeKeyIfExists(const Key & key, const UserID & user_id) { assertInitialized(); -#ifdef ABORT_ON_LOGICAL_ERROR - assertCacheCorrectness(); -#endif metadata.removeKey(key, /* if_exists */true, /* if_releasable */true, user_id); }