Skip to content

Commit

Permalink
Merge pull request ceph#61113 from leonidc/wip-leonidc_no_listener_fix
Browse files Browse the repository at this point in the history
nvmeofgw*: fix no-listeners
  • Loading branch information
leonidc authored Dec 19, 2024
2 parents 8c4f592 + ee66dc5 commit 862ed6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mon/NVMeofGwMon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -621,15 +621,15 @@ bool NVMeofGwMon::prepare_beacon(MonOpRequestRef op)
avail = gw_availability_t::GW_CREATED;
dout(20) << "No-subsystems condition detected for GW " << gw_id <<dendl;
} else {
bool listener_found = true;
bool listener_found = false;
for (auto &subs: sub) {
if (subs.listeners.size() == 0) {
listener_found = false;
dout(10) << "No-listeners condition detected for GW " << gw_id << " for nqn " << subs.nqn << dendl;
if (subs.listeners.size()) {
listener_found = true;
break;
}
}
if (!listener_found) {
dout(10) << "No-listeners condition detected for GW " << gw_id << dendl;
avail = gw_availability_t::GW_CREATED;
}
}// for HA no-subsystems and no-listeners are same usecases
Expand Down

0 comments on commit 862ed6e

Please sign in to comment.