]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: aws sync: remove bucket suffix configurable
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 16 Jan 2018 03:05:02 +0000 (19:05 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 12 Apr 2018 22:38:38 +0000 (15:38 -0700)
No need to have a special suffix, target path can be used instead.

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

index 560e0ffc956b36d7aee3f0977901611bcd0e484d..47d0784a2ea3006b912b2a693afdcc3850664e67 100644 (file)
@@ -223,8 +223,6 @@ struct AWSSyncConfig {
 
   map<string, AWSSyncConfig_Connection> connections;
 
-  string bucket_suffix;
-
   AWSSyncConfig_S3 s3;
 
   struct Target {
@@ -284,8 +282,6 @@ struct AWSSyncConfig {
       connections[new_conn["connection_id"]].init(new_conn);
     }
 
-    bucket_suffix = config["bucket_suffix"];
-
     int r = s3.init(cct, config["s3"]);
     if (r < 0) {
       return r;
@@ -363,7 +359,6 @@ struct AWSSyncConfig {
     }
     jf.close_section();
 
-    encode_json("bucket_suffix", bucket_suffix, &jf);
     s3.dump_conf(cct, jf);
 
     { // targets
@@ -385,9 +380,6 @@ struct AWSSyncConfig {
       owner += bucket_info.owner.id;
     }
     bucket_str += bucket_info.bucket.name;
-    if (!bucket_suffix.empty()) {
-      bucket_str = bucket_str + "-" + bucket_suffix;
-    }
     const Target *target{nullptr};
     const string *path{nullptr};
     if (find_target(bucket_info.bucket, &target)) {