]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
aws: use slashes in obj name
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 27 Feb 2017 16:43:25 +0000 (17:43 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Apr 2018 15:03:11 +0000 (08:03 -0700)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_sync_module_aws.cc

index 524dbef994a1557e945262c21cbccb87937c6fbf..433972d3dbdcc42f82fab7a5893e7995a804ba0c 100644 (file)
@@ -24,9 +24,9 @@ static string aws_object_name(const RGWBucketInfo& bucket_info, const rgw_obj_ke
   string bucket_name = aws_bucket_name(bucket_info, user_buckets);
   string object_name = bucket_name+"/";
   if (!user_buckets){
-    object_name += bucket_info.bucket.name;
+    object_name += bucket_info.owner.tenant + bucket_info.owner.id + "/";
   }
-  object_name += key.name;
+  object_name += bucket_info.bucket.name + "/" + key.name;
   return object_name;
 }