From: Leonid Chernin Date: Mon, 30 Sep 2024 16:43:38 +0000 (+0000) Subject: mon/nvmeofgw*:fix monitor database corruption upon add gw X-Git-Tag: v20.0.0~922^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=417c5441ef7d1e0849b6b755cdf3ae24597e7347;p=ceph.git mon/nvmeofgw*:fix monitor database corruption upon add gw Signed-off-by: Leonid Chernin --- diff --git a/src/mon/NVMeofGwMap.cc b/src/mon/NVMeofGwMap.cc index 068258289af81..7b1bc9b8e56cf 100755 --- a/src/mon/NVMeofGwMap.cc +++ b/src/mon/NVMeofGwMap.cc @@ -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];