]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/nvmeofgw*:fix monitor database corruption upon add gw 60069/head
authorLeonid Chernin <leonidc@il.ibm.com>
Mon, 30 Sep 2024 16:43:38 +0000 (16:43 +0000)
committerLeonid Chernin <leonidc@il.ibm.com>
Tue, 1 Oct 2024 06:25:12 +0000 (06:25 +0000)
Signed-off-by: Leonid Chernin <leonidc@il.ibm.com>
src/mon/NVMeofGwMap.cc

index 068258289af81da8d8167591fced8e912be70708..7b1bc9b8e56cf5c6c134479a784745485a43aa1a 100755 (executable)
@@ -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];