Fix build

This commit is contained in:
Kseniia Sumarokova 2023-10-31 19:21:06 +01:00 committed by GitHub
parent 30db41e053
commit 7f71c8f07c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -816,7 +816,7 @@ void FileCache::loadMetadata()
{
ProfileEventTimeIncrement<Microseconds> watch(ProfileEvents::FilesystemCacheLoadMetadataMicroseconds);
if (!metadata.empty())
if (!metadata.isEmpty())
{
throw Exception(
ErrorCodes::LOGICAL_ERROR,

View File

@ -240,7 +240,7 @@ KeyMetadataPtr CacheMetadata::getKeyMetadata(
return it->second;
}
bool CacheMetadata::empty() const
bool CacheMetadata::isEmpty() const
{
auto lock = lockMetadata();
return empty();

View File

@ -115,7 +115,7 @@ public:
static String getFileNameForFileSegment(size_t offset, FileSegmentKind segment_kind);
void iterate(IterateFunc && func);
bool empty() const;
bool isEmpty() const;
enum class KeyNotFoundPolicy
{