Skip to content

Commit b6f50d5

Browse files
committed
osd: add missing includes
Signed-off-by: Max Kellermann <[email protected]>
1 parent ee60bfb commit b6f50d5

File tree

6 files changed

+20
-1
lines changed

6 files changed

+20
-1
lines changed

src/common/scrub_types.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@
44
#ifndef CEPH_SCRUB_TYPES_H
55
#define CEPH_SCRUB_TYPES_H
66

7+
#include <cstdint>
8+
#include <map>
9+
#include <vector>
10+
711
#include <fmt/ranges.h>
812

13+
#include "include/buffer.h"
14+
#include "include/types.h" // for epoch_t
915
#include "osd/osd_types.h"
1016

1117
// wrappers around scrub types to offer the necessary bits other than

src/osd/ClassHandler.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#include "common/ceph_context.h"
88
#include "include/dlfcn_compat.h"
99

10+
#include <sys/types.h>
11+
#include <dirent.h>
12+
1013
#include <map>
1114

1215
#if defined(__FreeBSD__)

src/osd/DynamicPerfStats.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
#ifndef DYNAMIC_PERF_STATS_H
55
#define DYNAMIC_PERF_STATS_H
66

7+
#include <list>
8+
#include <map>
9+
#include <string>
10+
#include <vector>
11+
712
#include "include/random.h"
13+
#include "include/stringify.h"
814
#include "messages/MOSDOp.h"
915
#include "mgr/OSDPerfMetricTypes.h"
1016

src/osd/OSDMapMapping.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include "osd/osd_types.h"
1212
#include "common/WorkQueue.h"
13+
#include "common/Clock.h" // for ceph_clock_now()
1314
#include "common/Cond.h"
1415

1516
class OSDMap;

src/osd/PG.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "include/mempool.h"
2121

2222
// re-include our assert to clobber boost's
23-
#include "common/admin_finisher.h"
23+
#include "common/admin_finisher.h" // for asok_finisher
2424
#include "include/ceph_assert.h"
2525
#include "include/common_fwd.h"
2626

@@ -49,6 +49,7 @@
4949
#include <memory>
5050
#include <string>
5151
#include <tuple>
52+
#include <vector>
5253

5354
//#define DEBUG_RECOVERY_OIDS // track std::set of recovering oids explicitly, to find counting bugs
5455
//#define PG_DEBUG_REFS // track provenance of pg refs, helpful for finding leaks
@@ -78,6 +79,7 @@ namespace Scrub {
7879
void put_with_id(PG *pg, uint64_t id);
7980
typedef TrackedIntPtr<PG> PGRef;
8081
#else
82+
#include <boost/intrusive_ptr.hpp>
8183
typedef boost::intrusive_ptr<PG> PGRef;
8284
#endif
8385

src/osd/PrimaryLogPG.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include <boost/tuple/tuple.hpp>
2121
#include "include/ceph_assert.h"
22+
#include "include/types.h" // for client_t
2223
#include "DynamicPerfStats.h"
2324
#include "OSD.h"
2425
#include "PG.h"

0 commit comments

Comments
 (0)