From 08451d791089d743f04708884e2423ce54a777fd Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 15 Jan 2018 19:05:02 -0800 Subject: [PATCH] rgw: aws sync: remove bucket suffix configurable No need to have a special suffix, target path can be used instead. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_sync_module_aws.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/rgw/rgw_sync_module_aws.cc b/src/rgw/rgw_sync_module_aws.cc index 560e0ffc956..47d0784a2ea 100644 --- a/src/rgw/rgw_sync_module_aws.cc +++ b/src/rgw/rgw_sync_module_aws.cc @@ -223,8 +223,6 @@ struct AWSSyncConfig { map 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)) { -- 2.39.5