fix build

This commit is contained in:
zhongyuankai 2022-08-11 08:19:08 +08:00
parent 71935b96ef
commit 6ee9191203
2 changed files with 3 additions and 7 deletions

View File

@ -9,13 +9,9 @@ IPartMetadataManager::IPartMetadataManager(const IMergeTreeDataPart * part_) : p
{ {
} }
bool IPartMetadataManager::isCompressFromFileName(const String & file_name) const bool IPartMetadataManager::isCompressFromFileName(const String & file_name)
{ {
const auto & extension = fs::path(file_name).extension(); const auto & extension = fs::path(file_name).extension();
if (isCompressFromMrkExtension(extension) return isCompressFromMrkExtension(extension) || isCompressFromIndexExtension(extension);
|| isCompressFromIndexExtension(extension))
return true;
return false;
} }
} }

View File

@ -52,7 +52,7 @@ public:
virtual std::unordered_map<String, uint128> check() const = 0; virtual std::unordered_map<String, uint128> check() const = 0;
/// Determine whether to compress by file extension /// Determine whether to compress by file extension
bool isCompressFromFileName(const String & file_name) const; static bool isCompressFromFileName(const String & file_name);
protected: protected:
const IMergeTreeDataPart * part; const IMergeTreeDataPart * part;