mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Update FileCache.cpp
This commit is contained in:
parent
0d7710ee4b
commit
235980d52e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user