Skip to content

Commit bb2a220

Browse files
authored
Merge pull request ceph#60069 from leonidc/fix-corruption-upon-add-gw
mon/nvmeofgw*:fix monitor database corruption upon add gw
2 parents 731cee7 + 417c544 commit bb2a220

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mon/NVMeofGwMap.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ int NVMeofGwMap::cfg_add_gw(
9999
return 0;
100100
}
101101
}
102+
}
103+
for (auto& itr: created_gws[group_key]) {
102104
if (itr.second.availability == gw_availability_t::GW_DELETING) {
103105
//Was found some GW in "Deleting" state. Just to inherit its ANA group
104106
NvmeGwMonState & gw_created = created_gws[group_key][itr.first];

0 commit comments

Comments
 (0)