Disk empty name fix

This commit is contained in:
Mike Kot 2021-08-25 21:18:12 +02:00
parent 407af64280
commit 1f3701d485
2 changed files with 6 additions and 4 deletions

View File

@ -3569,8 +3569,10 @@ std::vector<DetachedPartInfo> MergeTreeData::getDetachedParts() const
{
for (auto it = disk->iterateDirectory(detached_path); it->isValid(); it->next())
{
auto res_it = res.emplace_back(DetachedPartInfo::parseDetachedPartName(it->name(), format_version));
res_it.disk = disk->getName();
auto part = DetachedPartInfo::parseDetachedPartName(it->name(), format_version);
part.disk = disk->getName();
res.push_back(std::move(part));
}
}
}