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 @@ -621,15 +621,15 @@ bool NVMeofGwMon::prepare_beacon(MonOpRequestRef op)
621621 avail = gw_availability_t ::GW_CREATED;
622622 dout (20 ) << " No-subsystems condition detected for GW " << gw_id <<dendl;
623623 } else {
624- bool listener_found = true ;
624+ bool listener_found = false ;
625625 for (auto &subs: sub) {
626- if (subs.listeners .size () == 0 ) {
627- listener_found = false ;
628- dout (10 ) << " No-listeners condition detected for GW " << gw_id << " for nqn " << subs.nqn << dendl;
626+ if (subs.listeners .size ()) {
627+ listener_found = true ;
629628 break ;
630629 }
631630 }
632631 if (!listener_found) {
632+ dout (10 ) << " No-listeners condition detected for GW " << gw_id << dendl;
633633 avail = gw_availability_t ::GW_CREATED;
634634 }
635635 }// for HA no-subsystems and no-listeners are same usecases
You can’t perform that action at this time.
0 commit comments