File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -625,15 +625,15 @@ bool NVMeofGwMon::prepare_beacon(MonOpRequestRef op)
625625 avail = gw_availability_t ::GW_CREATED;
626626 dout (20 ) << " No-subsystems condition detected for GW " << gw_id <<dendl;
627627 } else {
628- bool listener_found = true ;
628+ bool listener_found = false ;
629629 for (auto &subs: sub) {
630- if (subs.listeners .size () == 0 ) {
631- listener_found = false ;
632- dout (10 ) << " No-listeners condition detected for GW " << gw_id << " for nqn " << subs.nqn << dendl;
630+ if (subs.listeners .size ()) {
631+ listener_found = true ;
633632 break ;
634633 }
635634 }
636635 if (!listener_found) {
636+ dout (10 ) << " No-listeners condition detected for GW " << gw_id << dendl;
637637 avail = gw_availability_t ::GW_CREATED;
638638 }
639639 }// for HA no-subsystems and no-listeners are same usecases
You can’t perform that action at this time.
0 commit comments