This commit is contained in:
kssenii 2023-08-07 12:15:32 +02:00
parent 927b84a786
commit 2d90270c17
2 changed files with 6 additions and 0 deletions

View File

@ -924,6 +924,10 @@ void FileCache::loadMetadataImpl()
if (first_exception)
std::rethrow_exception(first_exception);
#ifdef ABORT_ON_LOGICAL_ERROR
assertCacheCorrectness();
#endif
}
void FileCache::loadMetadataForKeys(const fs::path & keys_dir)

View File

@ -185,6 +185,8 @@ LockedKeyPtr CacheMetadata::lockKeyMetadata(
bool is_initial_load)
{
auto key_metadata = getKeyMetadata(key, key_not_found_policy, is_initial_load);
if (!key_metadata)
return nullptr;
{
LockedKeyPtr locked_metadata;