From: Michal Jarzabek Date: Sat, 13 Aug 2016 16:46:35 +0000 (+0100) Subject: mon/LogMonitor: move C_Log struct to cc file X-Git-Tag: v11.0.1~196^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3131529b3b95dafd9136d68481f69b902632597b;p=ceph.git mon/LogMonitor: move C_Log struct to cc file Signed-off-by: Michal Jarzabek --- diff --git a/src/mon/LogMonitor.cc b/src/mon/LogMonitor.cc index c39d6e994ed9..a04ac7bb4a89 100644 --- a/src/mon/LogMonitor.cc +++ b/src/mon/LogMonitor.cc @@ -313,6 +313,18 @@ bool LogMonitor::preprocess_log(MonOpRequestRef op) return true; } +struct LogMonitor::C_Log : public C_MonOp { + LogMonitor *logmon; + C_Log(LogMonitor *p, MonOpRequestRef o) : + C_MonOp(o), logmon(p) {} + void _finish(int r) { + if (r == -ECANCELED) { + return; + } + logmon->_updated_log(op); + } +}; + bool LogMonitor::prepare_log(MonOpRequestRef op) { op->mark_logmon_event("prepare_log"); diff --git a/src/mon/LogMonitor.h b/src/mon/LogMonitor.h index eb399c5b4e3b..c9c6336726fb 100644 --- a/src/mon/LogMonitor.h +++ b/src/mon/LogMonitor.h @@ -151,17 +151,7 @@ private: return true; } - struct C_Log : public C_MonOp { - LogMonitor *logmon; - C_Log(LogMonitor *p, MonOpRequestRef o) : - C_MonOp(o), logmon(p) {} - void _finish(int r) { - if (r == -ECANCELED) { - return; - } - logmon->_updated_log(op); - } - }; + struct C_Log; bool preprocess_command(MonOpRequestRef op); bool prepare_command(MonOpRequestRef op);