diff --git a/src/Interpreters/Cache/FileCache.cpp b/src/Interpreters/Cache/FileCache.cpp index 1343e241631..5b28d4f76b3 100644 --- a/src/Interpreters/Cache/FileCache.cpp +++ b/src/Interpreters/Cache/FileCache.cpp @@ -816,7 +816,7 @@ void FileCache::loadMetadata() { ProfileEventTimeIncrement watch(ProfileEvents::FilesystemCacheLoadMetadataMicroseconds); - if (!metadata.empty()) + if (!metadata.isEmpty()) { throw Exception( ErrorCodes::LOGICAL_ERROR, diff --git a/src/Interpreters/Cache/Metadata.cpp b/src/Interpreters/Cache/Metadata.cpp index 169a8a0e93d..ad9e7da5d7f 100644 --- a/src/Interpreters/Cache/Metadata.cpp +++ b/src/Interpreters/Cache/Metadata.cpp @@ -240,7 +240,7 @@ KeyMetadataPtr CacheMetadata::getKeyMetadata( return it->second; } -bool CacheMetadata::empty() const +bool CacheMetadata::isEmpty() const { auto lock = lockMetadata(); return empty(); diff --git a/src/Interpreters/Cache/Metadata.h b/src/Interpreters/Cache/Metadata.h index 4697e4391a3..6f865948a8a 100644 --- a/src/Interpreters/Cache/Metadata.h +++ b/src/Interpreters/Cache/Metadata.h @@ -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 {