mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
Disk empty name fix
This commit is contained in:
parent
407af64280
commit
1f3701d485
@ -3569,8 +3569,10 @@ std::vector<DetachedPartInfo> MergeTreeData::getDetachedParts() const
|
|||||||
{
|
{
|
||||||
for (auto it = disk->iterateDirectory(detached_path); it->isValid(); it->next())
|
for (auto it = disk->iterateDirectory(detached_path); it->isValid(); it->next())
|
||||||
{
|
{
|
||||||
auto res_it = res.emplace_back(DetachedPartInfo::parseDetachedPartName(it->name(), format_version));
|
auto part = DetachedPartInfo::parseDetachedPartName(it->name(), format_version);
|
||||||
res_it.disk = disk->getName();
|
part.disk = disk->getName();
|
||||||
|
|
||||||
|
res.push_back(std::move(part));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user