summaryrefslogtreecommitdiffstats
path: root/src/mon/HealthMonitor.h
diff options
context:
space:
mode:
authorMichal Jarzabek <stiopa@gmail.com>2016-08-03 21:43:09 +0200
committerMichal Jarzabek <stiopa@gmail.com>2016-09-19 22:58:29 +0200
commit132f3027dd380d112ea5694a7ef5ea31e0ead13a (patch)
tree4fc00cabf16dd7a94560b1a6ff27fc4f8766d6ac /src/mon/HealthMonitor.h
parentMerge pull request #11134 from tserlin/wip-tserlin-fix-radosgw-admin-manpage (diff)
downloadceph-132f3027dd380d112ea5694a7ef5ea31e0ead13a.tar.xz
ceph-132f3027dd380d112ea5694a7ef5ea31e0ead13a.zip
mon/HealthMonitor: remove unneeded include
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
Diffstat (limited to 'src/mon/HealthMonitor.h')
-rw-r--r--src/mon/HealthMonitor.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/mon/HealthMonitor.h b/src/mon/HealthMonitor.h
index 4a7e3842bb2..9fdc3251ffc 100644
--- a/src/mon/HealthMonitor.h
+++ b/src/mon/HealthMonitor.h
@@ -15,10 +15,10 @@
#define CEPH_HEALTH_MONITOR_H
#include "mon/QuorumService.h"
-#include "mon/HealthService.h"
//forward declaration
namespace ceph { class Formatter; }
+class HealthService;
class HealthMonitor : public QuorumService
{
@@ -44,21 +44,9 @@ public:
list<pair<health_status_t,string> > *detail) override;
bool service_dispatch(MonOpRequestRef op) override;
- void start_epoch() override {
- for (map<int,HealthService*>::iterator it = services.begin();
- it != services.end(); ++it) {
- it->second->start(get_epoch());
- }
- }
+ void start_epoch() override;
- void finish_epoch() override {
- generic_dout(20) << "HealthMonitor::finish_epoch()" << dendl;
- for (map<int,HealthService*>::iterator it = services.begin();
- it != services.end(); ++it) {
- assert(it->second != NULL);
- it->second->finish();
- }
- }
+ void finish_epoch() override;
void cleanup() override { }
void service_tick() override { }