From 58efd3f9adf5d06bf53c1d35de544c5a3541a42a Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 26 Nov 2019 12:54:53 -0800 Subject: [PATCH] rgw: pubsub: user source bucket owner for event, not dest Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_sync_module_pubsub.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rgw/rgw_sync_module_pubsub.cc b/src/rgw/rgw_sync_module_pubsub.cc index 03e1c38c42e..8d4b64935c0 100644 --- a/src/rgw/rgw_sync_module_pubsub.cc +++ b/src/rgw/rgw_sync_module_pubsub.cc @@ -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); } -- 2.39.5