Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
}
};
+class MDSDaemon::C_MDS_Tick : public Context {
+ protected:
+ MDSDaemon *mds_daemon;
+public:
+ explicit C_MDS_Tick(MDSDaemon *m) : mds_daemon(m) {}
+ void finish(int r) {
+ assert(mds_daemon->mds_lock.is_locked_by_me());
+
+ mds_daemon->tick_event = 0;
+ mds_daemon->tick();
+ }
+};
+
// cons/des
MDSDaemon::MDSDaemon(const std::string &n, Messenger *m, MonClient *mc) :
Dispatcher(m->cct),
const std::set <std::string> &changed);
protected:
// tick and other timer fun
- class C_MDS_Tick : public Context {
- protected:
- MDSDaemon *mds_daemon;
- public:
- explicit C_MDS_Tick(MDSDaemon *m) : mds_daemon(m) {}
- void finish(int r) {
- assert(mds_daemon->mds_lock.is_locked_by_me());
-
- mds_daemon->tick_event = 0;
- mds_daemon->tick();
- }
- } *tick_event;
+ class C_MDS_Tick;
+ C_MDS_Tick *tick_event;
void reset_tick();
void wait_for_omap_osds();