]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: remove health service 20119/head
authorChang Liu <liuchang0812@gmail.com>
Thu, 25 Jan 2018 14:46:58 +0000 (22:46 +0800)
committerChang Liu <liuchang0812@gmail.com>
Thu, 25 Jan 2018 14:46:58 +0000 (22:46 +0800)
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
src/mon/HealthMonitor.cc
src/mon/HealthService.h [deleted file]

index 4c406732aacc457ca6df48d2699fa3269d4a2148..d1eab7869a8a96ea8be50a4f237051c6463bfafa 100644 (file)
@@ -21,7 +21,6 @@
 #include "include/stringify.h"
 
 #include "mon/Monitor.h"
-#include "mon/HealthService.h"
 #include "mon/HealthMonitor.h"
 
 #include "messages/MMonHealthChecks.h"
diff --git a/src/mon/HealthService.h b/src/mon/HealthService.h
deleted file mode 100644 (file)
index 75588cf..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
-// vim: ts=8 sw=2 smarttab
-/*
- * Ceph - scalable distributed file system
- *
- * Copyright (C) 2013 Inktank, Inc
- *
- * This is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software
- * Foundation.  See file COPYING.
- *
- */
-#ifndef CEPH_MON_HEALTH_SERVICE_H
-#define CEPH_MON_HEALTH_SERVICE_H
-
-#include "mon/Monitor.h"
-#include "mon/QuorumService.h"
-
-#include "common/config.h"
-
-struct HealthService : public QuorumService
-{
-  enum {
-    SERVICE_HEALTH_DATA              = 0x01
-  };
-
-  HealthService(Monitor *m) : QuorumService(m) { }
-  ~HealthService() override { }
-
-  bool service_dispatch(MonOpRequestRef op) override {
-    return service_dispatch_op(op);
-  }
-
-  virtual bool service_dispatch_op(MonOpRequestRef op) = 0;
-};
-
-#endif // CEPH_MON_HEALTH_SERVICE_H