]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrubber: add missing includes
authorMax Kellermann <max.kellermann@ionos.com>
Sun, 27 Oct 2024 12:52:36 +0000 (13:52 +0100)
committerMax Kellermann <max.kellermann@ionos.com>
Sun, 30 Mar 2025 20:58:56 +0000 (22:58 +0200)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
12 files changed:
src/osd/scrubber/PrimaryLogScrub.cc
src/osd/scrubber/ScrubStore.cc
src/osd/scrubber/ScrubStore.h
src/osd/scrubber/osd_scrub.cc
src/osd/scrubber/osd_scrub_sched.cc
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/scrub_backend.cc
src/osd/scrubber/scrub_backend.h
src/osd/scrubber/scrub_job.cc
src/osd/scrubber/scrub_machine.cc
src/osd/scrubber/scrub_reservations.cc
src/osd/scrubber_common.h

index 74661ab12eeb77f3e0a7e9f018c09566039234f0..a932843980b108dc3334df4600d4ddd79d79c00e 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <sstream>
 
+#include "common/debug.h"
 #include "common/scrub_types.h"
 #include "osd/PeeringState.h"
 #include "osd/PrimaryLogPG.h"
index 0360148f7ad119fb796598c85583e8498b239c96..b4b443797b4ac74a5f424068283d064196264cff 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "./ScrubStore.h"
 #include "osd/osd_types.h"
+#include "common/debug.h"
 #include "common/scrub_types.h"
 #include "include/rados/rados_types.hpp"
 
index 0955654d78e910ba92688c741f3cf4e751e3d4da..ae95adb66a10d20fb462e33782252cdabfbc0180 100644 (file)
@@ -2,6 +2,9 @@
 // vim: ts=8 sw=2 smarttab
 #pragma once
 
+#include <string>
+#include <vector>
+
 #include "common/map_cacher.hpp"
 #include "osd/osd_types_fmt.h"
 #include "osd/SnapMapper.h"  // for OSDriver
index f80cf04f3e1c4daf4c1b4957e7d42a0deab51370..2fbe9c38cf171aa56735e985e8132f77c9f1c20c 100644 (file)
@@ -8,6 +8,7 @@
 #include "osdc/Objecter.h"
 
 #include "pg_scrubber.h"
+#include "common/debug.h"
 
 using namespace ::std::chrono;
 using namespace ::std::chrono_literals;
index a45c817b38bd8d88ef526ba2d0816d8a7dc425b2..5b524139e0487c449bab5806ec3e24340394cdeb 100644 (file)
@@ -6,6 +6,7 @@
 #include "osd/OSD.h"
 
 #include "pg_scrubber.h"
+#include "common/debug.h"
 
 using namespace ::std::chrono;
 using namespace ::std::chrono_literals;
index 0a218098f888522c40f3cb226fd82d0a786614d1..36f7ce5fb6c75964180cecc0361ebe20055e85b6 100644 (file)
@@ -8,11 +8,13 @@
 #include <cmath>
 #include <iostream>
 #include <span>
+#include <sstream>
 #include <vector>
 
 #include "debug.h"
 
 #include "common/ceph_time.h"
+#include "common/debug.h"
 #include "common/errno.h"
 #include "messages/MOSDOp.h"
 #include "messages/MOSDRepScrub.h"
index 613c9a28782abeeed9aff50fc4f147945d98a51e..1f592a28ae97526e5f6ed93a59d0f1773cce300b 100644 (file)
@@ -4,6 +4,7 @@
 #include "./scrub_backend.h"
 
 #include <algorithm>
+#include <sstream>
 
 #include <fmt/ranges.h>
 
index 1755d6a824624de02453c3a6c559963c49e85c8f..b42f416e8e7ac95b72ef3b88ee8e6d104a857373 100644 (file)
@@ -43,6 +43,7 @@
 #include <fmt/core.h>
 #include <fmt/format.h>
 
+#include <iosfwd>
 #include <string_view>
 
 #include "common/LogClient.h"
index 43b8994963301ac8a5d0846d0cd23d267c3b486d..755978b083e2855fe6efb1746651595f1138542d 100644 (file)
@@ -5,6 +5,8 @@
 
 #include "pg_scrubber.h"
 
+#include "common/debug.h"
+
 using must_scrub_t = Scrub::must_scrub_t;
 using sched_params_t = Scrub::sched_params_t;
 using OSDRestrictions = Scrub::OSDRestrictions;
index 10866ce580a18bf5c0cc911ff7946f8bce2c2092..b72cf03eec31455ede8cf19f32977d920896c493 100644 (file)
@@ -1,6 +1,8 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 // vim: ts=8 sw=2 smarttab
 
+#include "scrub_machine.h"
+
 #include <chrono>
 #include <typeinfo>
 
@@ -10,7 +12,7 @@
 #include "osd/OpRequest.h"
 
 #include "ScrubStore.h"
-#include "scrub_machine.h"
+#include "common/debug.h"
 
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_osd
index fb9593597e97a8534f6968554b528dfadf083036..0b3265dde4d10305949df866c6b7b01417ee953a 100644 (file)
@@ -6,6 +6,7 @@
 #include <span>
 
 #include "common/ceph_time.h"
+#include "common/debug.h"
 #include "osd/OSD.h"
 #include "osd/PG.h"
 #include "osd/osd_types_fmt.h"
index 14a09fc79db6ed36ffab80c2bc4f6bc79c56effa..edbc9599851694cf20f8475c61eadd5177adc8ce 100644 (file)
@@ -2,10 +2,16 @@
 // vim: ts=8 sw=2 smarttab
 #pragma once
 
+#include <iosfwd>
+#include <set>
+#include <string>
+#include <string_view>
+
 #include <fmt/ranges.h>
 #include "common/ceph_time.h"
 #include "common/fmt_common.h"
 #include "common/scrub_types.h"
+#include "include/random.h" // for ceph::util::generate_random_number()
 #include "include/types.h"
 #include "messages/MOSDScrubReserve.h"
 #include "os/ObjectStore.h"