mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
Fix
This commit is contained in:
parent
927b84a786
commit
2d90270c17
@ -924,6 +924,10 @@ void FileCache::loadMetadataImpl()
|
|||||||
|
|
||||||
if (first_exception)
|
if (first_exception)
|
||||||
std::rethrow_exception(first_exception);
|
std::rethrow_exception(first_exception);
|
||||||
|
|
||||||
|
#ifdef ABORT_ON_LOGICAL_ERROR
|
||||||
|
assertCacheCorrectness();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileCache::loadMetadataForKeys(const fs::path & keys_dir)
|
void FileCache::loadMetadataForKeys(const fs::path & keys_dir)
|
||||||
|
@ -185,6 +185,8 @@ LockedKeyPtr CacheMetadata::lockKeyMetadata(
|
|||||||
bool is_initial_load)
|
bool is_initial_load)
|
||||||
{
|
{
|
||||||
auto key_metadata = getKeyMetadata(key, key_not_found_policy, is_initial_load);
|
auto key_metadata = getKeyMetadata(key, key_not_found_policy, is_initial_load);
|
||||||
|
if (!key_metadata)
|
||||||
|
return nullptr;
|
||||||
|
|
||||||
{
|
{
|
||||||
LockedKeyPtr locked_metadata;
|
LockedKeyPtr locked_metadata;
|
||||||
|
Loading…
Reference in New Issue
Block a user