Skip to content

Commit cc542ce

Browse files
authored
Merge pull request ceph#59588 from athanatos/sjust/wip-nvmeof-reenable
mon: enable nvmeof gw monitor Reviewed-by: Alexander Indenbaum <[email protected]>
2 parents 3bdd76e + ebb51fd commit cc542ce

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

src/mon/Monitor.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ Monitor::Monitor(CephContext* cct_, string nm, MonitorDBStore *s,
248248
paxos_service[PAXOS_HEALTH].reset(new HealthMonitor(*this, *paxos, "health"));
249249
paxos_service[PAXOS_CONFIG].reset(new ConfigMonitor(*this, *paxos, "config"));
250250
paxos_service[PAXOS_KV].reset(new KVMonitor(*this, *paxos, "kv"));
251-
#ifdef WITH_NVMEOF_GATEWAY_MONITOR
252251
paxos_service[PAXOS_NVMEGW].reset(new NVMeofGwMon(*this, *paxos, "nvmeofgw"));
253-
#endif
254252

255253
bool r = mon_caps.parse("allow *", NULL);
256254
ceph_assert(r);
@@ -3621,12 +3619,10 @@ void Monitor::handle_command(MonOpRequestRef op)
36213619
mgrmon()->dispatch(op);
36223620
return;
36233621
}
3624-
#ifdef WITH_NVMEOF_GATEWAY_MONITOR
36253622
if (module == "nvme-gw"){
36263623
nvmegwmon()->dispatch(op);
36273624
return;
36283625
}
3629-
#endif
36303626
if (prefix == "fsid") {
36313627
if (f) {
36323628
f->open_object_section("fsid");
@@ -4674,11 +4670,9 @@ void Monitor::dispatch_op(MonOpRequestRef op)
46744670
paxos_service[PAXOS_MGR]->dispatch(op);
46754671
return;
46764672

4677-
#ifdef WITH_NVMEOF_GATEWAY_MONITOR
46784673
case MSG_MNVMEOF_GW_BEACON:
46794674
paxos_service[PAXOS_NVMEGW]->dispatch(op);
46804675
return;
4681-
#endif
46824676

46834677

46844678
// MgrStat
@@ -5368,11 +5362,9 @@ void Monitor::handle_subscribe(MonOpRequestRef op)
53685362
} else if (p->first.find("kv:") == 0) {
53695363
kvmon()->check_sub(s->sub_map[p->first]);
53705364
}
5371-
#ifdef WITH_NVMEOF_GATEWAY_MONITOR
53725365
else if (p->first == "NVMeofGw") {
53735366
nvmegwmon()->check_sub(s->sub_map[p->first]);
53745367
}
5375-
#endif
53765368
}
53775369

53785370
if (reply) {

src/mon/Monitor.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ using namespace TOPNSPC::common;
6161

6262
#define CEPH_MON_PROTOCOL 13 /* cluster internal */
6363

64-
// NVMe-oF gateway monitor and HA is disabled by default upstream for now.
65-
// see doc/nvmeof/ha.md for more details
66-
//#define WITH_NVMEOF_GATEWAY_MONITOR
6764

6865
enum {
6966
l_cluster_first = 555000,
@@ -716,11 +713,7 @@ class Monitor : public Dispatcher,
716713
}
717714

718715
class NVMeofGwMon *nvmegwmon() {
719-
#ifdef WITH_NVMEOF_GATEWAY_MONITOR
720716
return (class NVMeofGwMon*) paxos_service[PAXOS_NVMEGW].get();
721-
#else
722-
return nullptr;
723-
#endif
724717
}
725718

726719

src/mon/mon_types.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ enum {
3636
PAXOS_HEALTH,
3737
PAXOS_CONFIG,
3838
PAXOS_KV,
39-
#ifdef WITH_NVMEOF_GATEWAY_MONITOR
4039
PAXOS_NVMEGW,
41-
#endif
4240
PAXOS_NUM
4341
};
4442

0 commit comments

Comments
 (0)