From: Max Kellermann Date: Tue, 12 Aug 2025 16:44:32 +0000 (+0200) Subject: rgw: add missing includes X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ff21a038157a8db9a19884860afa1e5c7617c3d8;p=ceph.git rgw: add missing includes Signed-off-by: Max Kellermann --- diff --git a/src/rgw/driver/rados/rgw_bucket.cc b/src/rgw/driver/rados/rgw_bucket.cc index b3a868529e3a1..f09aafb04933d 100644 --- a/src/rgw/driver/rados/rgw_bucket.cc +++ b/src/rgw/driver/rados/rgw_bucket.cc @@ -1,6 +1,7 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp +#include "common/Clock.h" // for ceph_clock_now() #include "include/function2.hpp" #include "rgw_acl_s3.h" #include "rgw_tag_s3.h" diff --git a/src/rgw/driver/rados/rgw_gc.cc b/src/rgw/driver/rados/rgw_gc.cc index 71473d1e382bf..79353dc97f516 100644 --- a/src/rgw/driver/rados/rgw_gc.cc +++ b/src/rgw/driver/rados/rgw_gc.cc @@ -4,6 +4,7 @@ #include "rgw_gc.h" #include "rgw_tools.h" +#include "common/Clock.h" // for ceph_clock_now() #include "include/scope_guard.h" #include "include/rados/librados.hpp" #include "cls/rgw/cls_rgw_client.h" diff --git a/src/rgw/driver/rados/rgw_object_expirer_core.cc b/src/rgw/driver/rados/rgw_object_expirer_core.cc index 2e4491f98ac0f..606c16496d309 100644 --- a/src/rgw/driver/rados/rgw_object_expirer_core.cc +++ b/src/rgw/driver/rados/rgw_object_expirer_core.cc @@ -11,6 +11,7 @@ #include "common/armor.h" #include "common/ceph_json.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/config.h" #include "common/ceph_argparse.h" #include "common/Formatter.h" diff --git a/src/rgw/radosgw-admin/orphan.cc b/src/rgw/radosgw-admin/orphan.cc index d29b581f3e421..4ec36c7cc1cea 100644 --- a/src/rgw/radosgw-admin/orphan.cc +++ b/src/rgw/radosgw-admin/orphan.cc @@ -8,7 +8,7 @@ #include "radosgw-admin/orphan.h" #include - +#include "common/Clock.h" // for ceph_clock_now() #include "common/config.h" #include "common/Formatter.h" #include "common/errno.h" diff --git a/src/rgw/rgw_compression_types.h b/src/rgw/rgw_compression_types.h index 6bee5ff858cbf..b62e936456a6b 100644 --- a/src/rgw/rgw_compression_types.h +++ b/src/rgw/rgw_compression_types.h @@ -15,6 +15,15 @@ #pragma once +#include +#include +#include +#include + +#include "include/encoding.h" + +namespace ceph { class Formatter; } + struct compression_block { uint64_t old_ofs; uint64_t new_ofs; diff --git a/src/rgw/rgw_dedup_cluster.cc b/src/rgw/rgw_dedup_cluster.cc index f18de129a5a54..7bdb308af87cc 100644 --- a/src/rgw/rgw_dedup_cluster.cc +++ b/src/rgw/rgw_dedup_cluster.cc @@ -21,6 +21,7 @@ #include "include/rados/buffer.h" #include "include/rados/librados.hpp" #include "svc_zone.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/config.h" #include "common/Cond.h" #include "common/debug.h" diff --git a/src/rgw/rgw_dedup_epoch.h b/src/rgw/rgw_dedup_epoch.h index e1a32263c6a9f..84492d3573924 100644 --- a/src/rgw/rgw_dedup_epoch.h +++ b/src/rgw/rgw_dedup_epoch.h @@ -13,6 +13,8 @@ */ #pragma once + +#include "common/Clock.h" // for ceph_clock_now() #include "common/dout.h" #include "rgw_dedup_utils.h" diff --git a/src/rgw/rgw_keystone.h b/src/rgw/rgw_keystone.h index cc9ff48cdceb2..4ff4cdb9fc67e 100644 --- a/src/rgw/rgw_keystone.h +++ b/src/rgw/rgw_keystone.h @@ -13,6 +13,7 @@ #include "rgw_common.h" #include "rgw_http_client.h" #include "common/ceph_mutex.h" +#include "common/Clock.h" // for ceph_clock_now() #include "global/global_init.h" diff --git a/src/rgw/rgw_lc.cc b/src/rgw/rgw_lc.cc index eaae450c966a1..661a368c3b241 100644 --- a/src/rgw/rgw_lc.cc +++ b/src/rgw/rgw_lc.cc @@ -16,6 +16,7 @@ #include "include/scope_guard.h" #include "include/function2.hpp" +#include "common/Clock.h" // for ceph_clock_now() #include "common/Formatter.h" #include "common/containers.h" #include "common/split.h" diff --git a/src/rgw/rgw_object_lock.h b/src/rgw/rgw_object_lock.h index e05d74bd724a3..cb6aa5669757e 100644 --- a/src/rgw/rgw_object_lock.h +++ b/src/rgw/rgw_object_lock.h @@ -4,6 +4,7 @@ #pragma once #include +#include "include/encoding.h" #include "common/ceph_time.h" #include "common/iso_8601.h" #include "rgw_xml.h" diff --git a/src/rgw/rgw_pool_types.h b/src/rgw/rgw_pool_types.h index 0a84f57d4712b..f81da82463642 100644 --- a/src/rgw/rgw_pool_types.h +++ b/src/rgw/rgw_pool_types.h @@ -23,6 +23,7 @@ #include #include +#include "include/encoding.h" #include "include/types.h" #include "common/Formatter.h" diff --git a/src/rgw/rgw_restore.cc b/src/rgw/rgw_restore.cc index e29637a72b9ec..d0255a0007559 100644 --- a/src/rgw/rgw_restore.cc +++ b/src/rgw/rgw_restore.cc @@ -16,6 +16,7 @@ #include "include/scope_guard.h" #include "include/function2.hpp" +#include "common/Clock.h" // for ceph_clock_now() #include "common/Formatter.h" #include "common/containers.h" #include "common/split.h" diff --git a/src/rgw/rgw_tag.h b/src/rgw/rgw_tag.h index 45c9356e2ee11..438451430bd43 100644 --- a/src/rgw/rgw_tag.h +++ b/src/rgw/rgw_tag.h @@ -3,10 +3,13 @@ #pragma once +#include #include #include #include +#include "include/encoding.h" + class RGWObjTags { public: