]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix initialization of s3_event in pubsub 38886/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 12 Jan 2021 21:01:38 +0000 (16:01 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 13 Jan 2021 14:12:49 +0000 (09:12 -0500)
resolves compiler warning:

rgw_sync_module_pubsub.cc: In constructor ‘RGWPSHandleObjEventCR::RGWPSHandleObjEventCR(RGWDataSyncCtx*, PSEnvRef, const rgw_user&, EventRef<rgw_pubsub_event>&, EventRef<rgw_pubsub_s3_event>&, const TopicsRef&)’:
rgw_sync_module_pubsub.cc:1028:3: warning: ‘RGWPSHandleObjEventCR::s3_event’ is initialized with itself [-Winit-self]
 1028 |   RGWPSHandleObjEventCR(RGWDataSyncCtx* const _sc,
      |   ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sync_module_pubsub.cc

index 74859b13325e664a332dc4d0cf95e6a5347f8472..11388eadf1a7631fe837837e731a8c394d2d528f 100644 (file)
@@ -1035,7 +1035,7 @@ public:
                                           env(_env),
                                           owner(_owner),
                                           event(_event),
-                                          s3_event(s3_event),
+                                          s3_event(_s3_event),
                                           topics(_topics),
                                           has_subscriptions(false),
                                           event_handled(false) {}