mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 22:12:21 +00:00
Fix
This commit is contained in:
parent
c73b496da5
commit
f4562d19a1
@ -283,7 +283,7 @@ void CacheMetadata::removeKey(const Key & key, bool if_exists, bool if_releasabl
|
||||
if (if_exists)
|
||||
return;
|
||||
else
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "No such key: {}", key);
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "No such key: {}", key);
|
||||
}
|
||||
|
||||
auto locked_key = it->second->lockNoStateCheck();
|
||||
@ -293,7 +293,7 @@ void CacheMetadata::removeKey(const Key & key, bool if_exists, bool if_releasabl
|
||||
if (if_exists)
|
||||
return;
|
||||
else
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "No such key: {} (state: {})", key, magic_enum::enum_name(state));
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "No such key: {} (state: {})", key, magic_enum::enum_name(state));
|
||||
}
|
||||
|
||||
bool removed_all = locked_key->removeAllFileSegments(if_releasable);
|
||||
|
@ -121,8 +121,8 @@ public:
|
||||
KeyNotFoundPolicy key_not_found_policy,
|
||||
bool is_initial_load = false);
|
||||
|
||||
void removeKey(const Key & key, bool if_exists, bool is_releasable);
|
||||
void removeAllKeys(bool is_releasable);
|
||||
void removeKey(const Key & key, bool if_exists, bool if_releasable);
|
||||
void removeAllKeys(bool if_releasable);
|
||||
|
||||
void cancelCleanup();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user