This requires un-inlining constructor and destructor.
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
#include "common/Clock.h" // for ceph_clock_now()
#include "common/debug.h"
#include "common/Formatter.h"
+#include "messages/MMgrReport.h"
#define dout_context g_ceph_context
#define dout_subsys ceph_subsys_mgr
return config_defaults;
}
+DaemonStateIndex::DaemonStateIndex() = default;
+DaemonStateIndex::~DaemonStateIndex() = default;
+
void DaemonStateIndex::insert(DaemonStatePtr dm)
{
std::unique_lock l{lock};
#include "msg/msg_types.h"
-// For PerfCounterType
-#include "messages/MMgrReport.h"
#include "DaemonHealthMetric.h"
#include "DaemonKey.h"
class Formatter;
}
+class PerfCounterType;
+class MMgrReport;
+
// An instance of a performance counter type, within
// a particular daemon.
class PerfCounterInstance
}
public:
- DaemonStateIndex() {}
+ DaemonStateIndex();
+ ~DaemonStateIndex();
// FIXME: shouldn't really be public, maybe construct DaemonState
// objects internally to avoid this.