Skip to content

Commit

Permalink
Merge pull request #60069 from leonidc/fix-corruption-upon-add-gw
Browse files Browse the repository at this point in the history
 mon/nvmeofgw*:fix monitor database corruption upon add gw
  • Loading branch information
leonidc authored Oct 2, 2024
2 parents 731cee7 + 417c544 commit bb2a220
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mon/NVMeofGwMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ int NVMeofGwMap::cfg_add_gw(
return 0;
}
}
}
for (auto& itr: created_gws[group_key]) {
if (itr.second.availability == gw_availability_t::GW_DELETING) {
//Was found some GW in "Deleting" state. Just to inherit its ANA group
NvmeGwMonState & gw_created = created_gws[group_key][itr.first];
Expand Down

0 comments on commit bb2a220

Please sign in to comment.