]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Fix compilation issue with clang on centos 62780/head
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 11 Apr 2025 09:41:37 +0000 (10:41 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Fri, 11 Apr 2025 09:46:32 +0000 (10:46 +0100)
We are getting a compilation issue with accessing an incomplete type.

This fix moves some code around to avoid this issue.

I don't fully understand why we don't see this issue everywhere!

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/rgw/services/svc_notify.cc

index 6999aaa6a13d226ffc1c675bc8a4dcad8629f660..0fb2c18f3b936ba54608c1c01cfc23c5de0ec934 100644 (file)
@@ -22,13 +22,6 @@ using namespace std;
 
 static string notify_oid_prefix = "notify";
 
-RGWSI_Notify::RGWSI_Notify(CephContext *cct) : RGWServiceInstance(cct) {}
-RGWSI_Notify::~RGWSI_Notify()
-{
-  shutdown();
-}
-
-
 class RGWWatcher : public DoutPrefixProvider , public librados::WatchCtx2 {
   CephContext *cct;
   RGWSI_Notify *svc;
@@ -141,6 +134,11 @@ public:
   }
 };
 
+RGWSI_Notify::RGWSI_Notify(CephContext *cct) : RGWServiceInstance(cct) {}
+RGWSI_Notify::~RGWSI_Notify()
+{
+  shutdown();
+}
 
 class RGWSI_Notify_ShutdownCB : public RGWSI_Finisher::ShutdownCB
 {