Removed useless method

This commit is contained in:
Alexey Milovidov 2019-03-29 11:36:42 +03:00
parent 3e3ab8acb7
commit 34c0682353
2 changed files with 0 additions and 27 deletions

View File

@ -2248,30 +2248,6 @@ void MergeTreeData::freezePartition(const ASTPtr & partition_ast, const String &
context);
}
size_t MergeTreeData::getPartitionSize(const std::string & partition_id) const
{
size_t size = 0;
Poco::DirectoryIterator end;
for (Poco::DirectoryIterator it(full_path); it != end; ++it)
{
MergeTreePartInfo part_info;
if (!MergeTreePartInfo::tryParsePartName(it.name(), &part_info, format_version))
continue;
if (part_info.partition_id != partition_id)
continue;
const auto part_path = it.path().absolute().toString();
for (Poco::DirectoryIterator it2(part_path); it2 != end; ++it2)
{
const auto part_file_path = it2.path().absolute().toString();
size += Poco::File(part_file_path).getSize();
}
}
return size;
}
String MergeTreeData::getPartitionIDFromQuery(const ASTPtr & ast, const Context & context)
{

View File

@ -533,9 +533,6 @@ public:
*/
void freezePartition(const ASTPtr & partition, const String & with_name, const Context & context);
/// Returns the size of partition in bytes.
size_t getPartitionSize(const std::string & partition_id) const;
size_t getColumnCompressedSize(const std::string & name) const
{
auto lock = lockParts();