Skip to content

Commit 417c544

Browse files
committed
mon/nvmeofgw*:fix monitor database corruption upon add gw
Signed-off-by: Leonid Chernin <[email protected]>
1 parent 592a199 commit 417c544

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)