diff options
author | Leonid Chernin <leonidc@il.ibm.com> | 2024-09-30 18:43:38 +0200 |
---|---|---|
committer | Leonid Chernin <leonidc@il.ibm.com> | 2024-10-01 08:25:12 +0200 |
commit | 417c5441ef7d1e0849b6b755cdf3ae24597e7347 (patch) | |
tree | 7a04bb5b393c3194833b3ddb83d901d69592c9d9 /src/mon/NVMeofGwMap.cc | |
parent | Merge pull request #59875 from joscollin/wip-B68131-revert-sync-duration (diff) | |
download | ceph-417c5441ef7d1e0849b6b755cdf3ae24597e7347.tar.xz ceph-417c5441ef7d1e0849b6b755cdf3ae24597e7347.zip |
mon/nvmeofgw*:fix monitor database corruption upon add gw
Signed-off-by: Leonid Chernin <leonidc@il.ibm.com>
Diffstat (limited to '')
-rwxr-xr-x | src/mon/NVMeofGwMap.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mon/NVMeofGwMap.cc b/src/mon/NVMeofGwMap.cc index 068258289af..7b1bc9b8e56 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]; |