From 89f773db3497ff9ee3def9465cd6bbf051a4fede Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 27 Jul 2018 16:21:09 -0700 Subject: [PATCH] rgw: pubsub: have sub name as event oid prefix dest should be unique for each subscription Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_sync_module_pubsub_rest.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_sync_module_pubsub_rest.cc b/src/rgw/rgw_sync_module_pubsub_rest.cc index 15b7bf5411d..c9749cc1b1d 100644 --- a/src/rgw/rgw_sync_module_pubsub_rest.cc +++ b/src/rgw/rgw_sync_module_pubsub_rest.cc @@ -316,6 +316,7 @@ public: dest.push_endpoint = s->info.args.get("push-endpoint"); dest.bucket_name = string(conf["data_bucket_prefix"]) + s->owner.get_id().to_str() + "-" + topic_name; + dest.oid_prefix = string(conf["data_oid_prefix"]) + sub_name + "/"; return 0; } -- 2.39.5