Skip to content

Commit 5ac564a

Browse files
authored
Merge 303b50a into 1a38741
2 parents 1a38741 + 303b50a commit 5ac564a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ydb/core/blobstorage/nodewarden/node_warden_group_resolver.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,12 @@ namespace NKikimr::NStorage {
336336
if (const auto it = Groups.find(r.GetGroupId()); it != Groups.end() && it->second.Group) {
337337
record.MutableGroup()->CopyFrom(*it->second.Group);
338338
}
339+
THashSet<TGroupId> groupsAdded;
339340
for (const auto& [key, value] : LocalVDisks) {
340341
if (const auto& r = value.RuntimeData; r && !r->DonorMode) {
341-
record.AddStartedGroupIds(r->GroupInfo->GroupID.GetRawId());
342+
if (const auto& groupId = r->GroupInfo->GroupID; groupsAdded.insert(groupId).second) {
343+
record.AddStartedGroupIds(groupId.GetRawId());
344+
}
342345
}
343346
}
344347
Send(ev->Sender, res.release(), 0, ev->Cookie);

0 commit comments

Comments
 (0)