From: Samuel Just Date: Wed, 14 Aug 2024 03:09:09 +0000 (-0700) Subject: mon: enable nvmeof gw monitor X-Git-Tag: v20.0.0~1138^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ebb51fdce5efba96fd0d199fbb0e16de99eb3c9d;p=ceph.git mon: enable nvmeof gw monitor This reverts commit 6911df2c834a313f0c545de4c1b309348ea5388a. Signed-off-by: Samuel Just --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 2f4b0b887192..625838d3cd4f 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -248,9 +248,7 @@ Monitor::Monitor(CephContext* cct_, string nm, MonitorDBStore *s, paxos_service[PAXOS_HEALTH].reset(new HealthMonitor(*this, *paxos, "health")); paxos_service[PAXOS_CONFIG].reset(new ConfigMonitor(*this, *paxos, "config")); paxos_service[PAXOS_KV].reset(new KVMonitor(*this, *paxos, "kv")); -#ifdef WITH_NVMEOF_GATEWAY_MONITOR paxos_service[PAXOS_NVMEGW].reset(new NVMeofGwMon(*this, *paxos, "nvmeofgw")); -#endif bool r = mon_caps.parse("allow *", NULL); ceph_assert(r); @@ -3621,12 +3619,10 @@ void Monitor::handle_command(MonOpRequestRef op) mgrmon()->dispatch(op); return; } -#ifdef WITH_NVMEOF_GATEWAY_MONITOR if (module == "nvme-gw"){ nvmegwmon()->dispatch(op); return; } -#endif if (prefix == "fsid") { if (f) { f->open_object_section("fsid"); @@ -4674,11 +4670,9 @@ void Monitor::dispatch_op(MonOpRequestRef op) paxos_service[PAXOS_MGR]->dispatch(op); return; -#ifdef WITH_NVMEOF_GATEWAY_MONITOR case MSG_MNVMEOF_GW_BEACON: paxos_service[PAXOS_NVMEGW]->dispatch(op); return; -#endif // MgrStat @@ -5368,11 +5362,9 @@ void Monitor::handle_subscribe(MonOpRequestRef op) } else if (p->first.find("kv:") == 0) { kvmon()->check_sub(s->sub_map[p->first]); } -#ifdef WITH_NVMEOF_GATEWAY_MONITOR else if (p->first == "NVMeofGw") { nvmegwmon()->check_sub(s->sub_map[p->first]); } -#endif } if (reply) { diff --git a/src/mon/Monitor.h b/src/mon/Monitor.h index 93dfce98d683..90fbc8f09c06 100644 --- a/src/mon/Monitor.h +++ b/src/mon/Monitor.h @@ -61,9 +61,6 @@ using namespace TOPNSPC::common; #define CEPH_MON_PROTOCOL 13 /* cluster internal */ -// NVMe-oF gateway monitor and HA is disabled by default upstream for now. -// see doc/nvmeof/ha.md for more details -//#define WITH_NVMEOF_GATEWAY_MONITOR enum { l_cluster_first = 555000, @@ -716,11 +713,7 @@ public: } class NVMeofGwMon *nvmegwmon() { -#ifdef WITH_NVMEOF_GATEWAY_MONITOR return (class NVMeofGwMon*) paxos_service[PAXOS_NVMEGW].get(); -#else - return nullptr; -#endif } diff --git a/src/mon/mon_types.h b/src/mon/mon_types.h index f4e80e350195..9dd2797852d4 100644 --- a/src/mon/mon_types.h +++ b/src/mon/mon_types.h @@ -36,9 +36,7 @@ enum { PAXOS_HEALTH, PAXOS_CONFIG, PAXOS_KV, -#ifdef WITH_NVMEOF_GATEWAY_MONITOR PAXOS_NVMEGW, -#endif PAXOS_NUM };