Skip to content

Commit

Permalink
Fix coverity issue (#4536)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvru committed May 15, 2024
1 parent 73839e7 commit 6b9a67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/blobstorage/nodewarden/distconf_invoke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ namespace NKikimr::NStorage {
for (size_t i = 0; i < ss->PDisksSize(); ++i) {
if (const auto& pdisk = ss->GetPDisks(i); pdisk.HasNodeID() && pdisk.HasPDiskID() &&
pdisk.GetNodeID() == vslotId.GetNodeId() && pdisk.GetPDiskID() == vslotId.GetPDiskId()) {
ss->MutablePDisks()->DeleteSubrange(i--, 1);
ss->MutablePDisks()->DeleteSubrange(i, 1);
changes = true;
break;
}
Expand Down

0 comments on commit 6b9a67a

Please sign in to comment.