From: Max Kellermann Date: Tue, 12 Aug 2025 19:06:17 +0000 (+0200) Subject: mgr: add missing includes X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a17349b87afd4b4e66dfe50796e1594b47b13aba;p=ceph.git mgr: add missing includes Signed-off-by: Max Kellermann --- diff --git a/src/mgr/ActivePyModules.cc b/src/mgr/ActivePyModules.cc index 5d2a751538ec..b770d24bf943 100644 --- a/src/mgr/ActivePyModules.cc +++ b/src/mgr/ActivePyModules.cc @@ -22,6 +22,7 @@ #include "common/perf_counters_key.h" #include "crush/CrushWrapper.h" #include "include/stringify.h" +#include "json_spirit/json_spirit_writer.h" #include "mon/MonMap.h" #include "osd/OSDMap.h" @@ -29,6 +30,7 @@ #include "mgr/MgrContext.h" #include "mgr/TTLCache.h" #include "mgr/mgr_perf_counters.h" +#include "messages/MMgrReport.h" // for class PerfCounterType #include "DaemonKey.h" #include "DaemonServer.h" diff --git a/src/mgr/ActivePyModules.h b/src/mgr/ActivePyModules.h index 31ebb0c71e63..17e32f05d415 100644 --- a/src/mgr/ActivePyModules.h +++ b/src/mgr/ActivePyModules.h @@ -26,6 +26,7 @@ #include "mon/MonCommand.h" #include "mon/mon_types.h" #include "mon/ConfigMap.h" +#include "mgr/MDSPerfMetricTypes.h" #include "mgr/TTLCache.h" #include "DaemonState.h" @@ -33,6 +34,7 @@ #include "OSDPerfMetricTypes.h" #include +#include #include #include diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index d456b16c4e70..a967658e2f41 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -39,6 +39,7 @@ #include "messages/MCommandReply.h" #include "messages/MMgrCommand.h" #include "messages/MMgrCommandReply.h" +#include "messages/MMgrReport.h" #include "messages/MPGStats.h" #include "messages/MOSDScrub2.h" #include "messages/MOSDForceRecovery.h" diff --git a/src/mgr/DaemonState.cc b/src/mgr/DaemonState.cc index 84970c749d11..1c412bc2f520 100644 --- a/src/mgr/DaemonState.cc +++ b/src/mgr/DaemonState.cc @@ -17,6 +17,7 @@ #include "MgrSession.h" #include "include/stringify.h" +#include "include/str_map.h" #include "common/Clock.h" // for ceph_clock_now() #include "common/debug.h" #include "common/Formatter.h" diff --git a/src/mgr/DaemonState.h b/src/mgr/DaemonState.h index d78e819405b0..34981025f3a8 100644 --- a/src/mgr/DaemonState.h +++ b/src/mgr/DaemonState.h @@ -21,12 +21,17 @@ #include #include +#include "common/ceph_mutex.h" +#include "common/perf_counters.h" // for enum perfcounter_type_d +#include "common/RefCountedObj.h" #include "include/str_map.h" +#include "include/utime.h" #include "msg/msg_types.h" // For PerfCounterType #include "messages/MMgrReport.h" +#include "DaemonHealthMetric.h" #include "DaemonKey.h" namespace ceph { diff --git a/src/mgr/MDSPerfMetricTypes.h b/src/mgr/MDSPerfMetricTypes.h index e11b9f4480b2..28d901bb970a 100644 --- a/src/mgr/MDSPerfMetricTypes.h +++ b/src/mgr/MDSPerfMetricTypes.h @@ -8,8 +8,10 @@ #include #include +#include "include/cephfs/types.h" // for mds_rank_t #include "include/denc.h" #include "include/stringify.h" +#include "include/utime.h" #include "common/Formatter.h" #include "mds/mdstypes.h" diff --git a/src/mgr/MetricTypes.h b/src/mgr/MetricTypes.h index ec317db7759a..590cc0e55a8d 100644 --- a/src/mgr/MetricTypes.h +++ b/src/mgr/MetricTypes.h @@ -4,6 +4,7 @@ #ifndef CEPH_MGR_METRIC_TYPES_H #define CEPH_MGR_METRIC_TYPES_H +#include #include #include "include/denc.h" #include "include/ceph_features.h" diff --git a/src/mgr/Mgr.cc b/src/mgr/Mgr.cc index 418e8ae984ae..0225527c5eda 100644 --- a/src/mgr/Mgr.cc +++ b/src/mgr/Mgr.cc @@ -17,6 +17,7 @@ #include "common/errno.h" #include "mon/MonClient.h" #include "include/stringify.h" +#include "include/str_map.h" #include "global/global_context.h" #include "global/signal_handler.h" diff --git a/src/mgr/OSDPerfMetricTypes.h b/src/mgr/OSDPerfMetricTypes.h index 6345c8891779..1427ff1e3046 100644 --- a/src/mgr/OSDPerfMetricTypes.h +++ b/src/mgr/OSDPerfMetricTypes.h @@ -11,7 +11,13 @@ #include "mgr/Types.h" +#include +#include +#include #include +#include +#include +#include typedef std::vector OSDPerfMetricSubKey; // array of regex match typedef std::vector OSDPerfMetricKey; diff --git a/src/mgr/Types.h b/src/mgr/Types.h index ab90bbbe9acc..5ff3201ee9f2 100644 --- a/src/mgr/Types.h +++ b/src/mgr/Types.h @@ -4,6 +4,8 @@ #ifndef CEPH_MGR_TYPES_H #define CEPH_MGR_TYPES_H +#include + typedef int MetricQueryID; typedef std::pair PerformanceCounter;