Skip to content

Commit

Permalink
Fix static group SelfHeal bug (#4449)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvru authored May 13, 2024
1 parent 05d2b5f commit 2ef009d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ydb/core/mind/bscontroller/self_heal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -931,10 +931,11 @@ namespace NKikimr::NBsController {
const auto& ss = bsConfig.GetServiceSet();
for (const auto& group : ss.GetGroups()) {
auto& content = sh->GroupsToUpdate[group.GetGroupID()];
const TBlobStorageGroupType gtype(static_cast<TBlobStorageGroupType::EErasureSpecies>(group.GetErasureSpecies()));
content = TEvControllerUpdateSelfHealInfo::TGroupContent{
.Generation = group.GetGroupGeneration(),
.Type = static_cast<TBlobStorageGroupType::EErasureSpecies>(group.GetErasureSpecies()),
.Geometry = std::make_shared<TGroupGeometryInfo>(content->Type, settings.GetGeometry()),
.Type = gtype,
.Geometry = std::make_shared<TGroupGeometryInfo>(gtype, settings.GetGeometry()),
};

const TVDiskID vdiskId(group.GetGroupID(), group.GetGroupGeneration(), 0, 0, 0);
Expand Down

0 comments on commit 2ef009d

Please sign in to comment.