]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: Fix CephContext forward declaration
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 4 Sep 2025 19:09:46 +0000 (15:09 -0400)
committerHarsimran Singh <hsthukral51@gmail.com>
Wed, 19 Nov 2025 21:53:56 +0000 (03:23 +0530)
Use `common_fwd.h` to avoid clashes with Crimson namespace hackery.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_usage_cache.h

index a726cb7874117ba5ef423951f833154fd266fdc4..cf40726a9a57e1ce4f791ea47c3a63255aea2857 100644 (file)
@@ -4,7 +4,6 @@
 #pragma once
 
 #include <string>
-#include <memory>
 #include <optional>
 #include <atomic>
 #include <shared_mutex>
 
 #include "include/buffer.h"
 #include "include/encoding.h"
+#include "include/common_fwd.h"
 #include "common/ceph_time.h"
 
-// Forward declarations
-class CephContext;
-class PerfCounters;
-
 namespace rgw {
 
 struct UsageStats {
@@ -122,4 +118,4 @@ private:
   mutable std::atomic<uint64_t> cache_misses{0};
 };
 
-} // namespace rgw
\ No newline at end of file
+} // namespace rgw