From: Michal Jarzabek Date: Thu, 21 Jul 2016 12:54:56 +0000 (+0100) Subject: mon/MonClient: move C_Tick struct to cc file X-Git-Tag: v11.0.1~201^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2febf6a8c0e4853010a55956442325ae52ba8a48;p=ceph.git mon/MonClient: move C_Tick struct to cc file Signed-off-by: Michal Jarzabek --- diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index 6ae7b4574065..ddfbbc8f8e6e 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -744,6 +744,14 @@ void MonClient::tick() void MonClient::schedule_tick() { + struct C_Tick : public Context { + MonClient *monc; + explicit C_Tick(MonClient *m) : monc(m) {} + void finish(int r) { + monc->tick(); + } + }; + if (hunting) timer.add_event_after(cct->_conf->mon_client_hunt_interval * reopen_interval_multiplier, new C_Tick(this)); diff --git a/src/mon/MonClient.h b/src/mon/MonClient.h index 4e08ceb6d6c0..ba5ce0c71386 100644 --- a/src/mon/MonClient.h +++ b/src/mon/MonClient.h @@ -148,13 +148,6 @@ private: // monitor session bool hunting; - struct C_Tick : public Context { - MonClient *monc; - explicit C_Tick(MonClient *m) : monc(m) {} - void finish(int r) { - monc->tick(); - } - }; void tick(); void schedule_tick();