mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
Ugly working code
This commit is contained in:
parent
27b0a06005
commit
d08d99954f
@ -2940,7 +2940,7 @@ void MergeTreeData::dropDetached(const ASTPtr & partition, bool part, const Cont
|
|||||||
|
|
||||||
for (auto & names : renamed_parts.old_and_new_names)
|
for (auto & names : renamed_parts.old_and_new_names)
|
||||||
{
|
{
|
||||||
Poco::File(getFullPathOnDisk(renamed_parts.name_to_disk[names.first]) + names.second).remove(true);
|
Poco::File(getFullPathOnDisk(renamed_parts.name_to_disk[names.first]) + "detached/" + names.second).remove(true);
|
||||||
LOG_DEBUG(log, "Dropped detached part " << names.first);
|
LOG_DEBUG(log, "Dropped detached part " << names.first);
|
||||||
names.first.clear();
|
names.first.clear();
|
||||||
}
|
}
|
||||||
@ -3267,7 +3267,7 @@ String MergeTreeData::getFullPathForPart(const String & part_name, const String
|
|||||||
{
|
{
|
||||||
auto disk = getDiskForPart(part_name, relative_path);
|
auto disk = getDiskForPart(part_name, relative_path);
|
||||||
if (disk)
|
if (disk)
|
||||||
return getFullPathOnDisk(disk);
|
return getFullPathOnDisk(disk) + relative_path;
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user