]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: pubsub: have sub name as event oid prefix
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 27 Jul 2018 23:21:09 +0000 (16:21 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 11 Dec 2018 08:10:43 +0000 (00:10 -0800)
dest should be unique for each subscription

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync_module_pubsub_rest.cc

index 15b7bf5411ddbe738e3a2de0e2ca8016ed02b5ac..c9749cc1b1df71b7ba68b3683ed17330a64334d4 100644 (file)
@@ -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;
   }