]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #60069 from leonidc/fix-corruption-upon-add-gw
authorleonidc <lechernin@gmail.com>
Wed, 2 Oct 2024 07:30:42 +0000 (10:30 +0300)
committerAlexander Indenbaum <aindenba@redhat.com>
Wed, 19 Nov 2025 18:41:52 +0000 (20:41 +0200)
 mon/nvmeofgw*:fix monitor database corruption upon add gw

Signed-off-by: Leonid Chernin <leonidc@il.ibm.com>
(cherry-picked from bb2a2208867d7bce58b9697570c83d995a1c5976)

src/mon/NVMeofGwMap.cc

index 220014c54e6d5d0c45006a8a8d030682efa061c8..f43a1546f8fec393952d3fa6afc9089c2a659272 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];