]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: pubsub: user source bucket owner for event, not dest
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 26 Nov 2019 20:54:53 +0000 (12:54 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 28 Jan 2020 18:20:39 +0000 (10:20 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync_module_pubsub.cc

index 03e1c38c42edc68f38c9526facd197f34764516a..8d4b64935c073729363454e27832d10b70e423f0 100644 (file)
@@ -1362,8 +1362,7 @@ public:
                        rgw::notify::ObjectCreated, &record);
       }
 
-#warning should it be source owner?
-      yield call(new RGWPSHandleObjEventCR(sc, env, sync_pipe.dest_bucket_info.owner, event, record, topics));
+      yield call(new RGWPSHandleObjEventCR(sc, env, sync_pipe.source_bucket_info.owner, event, record, topics));
       if (retcode < 0) {
         return set_cr_error(retcode);
       }