]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW:Multisite: Rename rgw_sync_obj_integrity to rgw_sync_obj_etag_verify
authorPrasad Krishnan <prasad.krishnan@flipkart.com>
Thu, 19 Mar 2020 01:25:13 +0000 (01:25 +0000)
committerPrasad Krishnan <prasad.krishnan@flipkart.com>
Thu, 19 Mar 2020 01:25:13 +0000 (01:25 +0000)
Signed-off-by: Prasad Krishnan <prasad.krishnan@flipkart.com>
src/common/legacy_config_opts.h
src/common/options.cc
src/rgw/rgw_rados.cc

index ac269580ed71582f4c54099333f1a6aa16f6c9b5..474edeef258acd669d4f1dc3939ba9c7f903598c 100644 (file)
@@ -1434,7 +1434,7 @@ OPTION(rgw_curl_low_speed_limit, OPT_INT) // low speed limit for certain curl ca
 OPTION(rgw_curl_low_speed_time, OPT_INT) // low speed time for certain curl calls
 OPTION(rgw_copy_obj_progress, OPT_BOOL) // should dump progress during long copy operations?
 OPTION(rgw_copy_obj_progress_every_bytes, OPT_INT) // min bytes between copy progress output
-OPTION(rgw_sync_obj_integrity, OPT_BOOL) // verify if the copied object from remote is identical to source
+OPTION(rgw_sync_obj_etag_verify, OPT_BOOL) // verify if the copied object from remote is identical to source
 OPTION(rgw_obj_tombstone_cache_size, OPT_INT) // how many objects in tombstone cache, which is used in multi-zone sync to keep
                                                     // track of removed objects' mtime
 
index be4a61f04dd455f3ba586cf04d440c714c5bb704..2919262c1521f6e4f21d7fd044d3a59e6216a170 100644 (file)
@@ -6287,7 +6287,7 @@ std::vector<Option> get_rgw_options() {
     .set_default(1_M)
     .set_description("Send copy-object progress info after these many bytes"),
 
-    Option("rgw_sync_obj_integrity", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
+    Option("rgw_sync_obj_etag_verify", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
     .set_default(false)
     .set_description("Verify if the object copied from remote is identical to its source")
     .set_long_description(
index 78f266d5aa1446693510e092d2f3bd248d40b540..3153e41b0fc66e87e2dc3864893080dca19e549e 100644 (file)
@@ -3331,7 +3331,7 @@ public:
      * requested. We can enable simultaneous support once we have a mechanism
      * to know the sequence in which the filters must be applied.
      */
-    if (cct->_conf->rgw_sync_obj_integrity &&
+    if (cct->_conf->rgw_sync_obj_etag_verify &&
         src_attrs.find(RGW_ATTR_CRYPT_MODE) == src_attrs.end()) {
 
       RGWObjManifest manifest;
@@ -3444,7 +3444,7 @@ public:
   }
 
   string get_calculated_etag() {
-    if (!cct->_conf->rgw_sync_obj_integrity)
+    if (!cct->_conf->rgw_sync_obj_etag_verify)
       return "";
 
     if (is_mpu_obj) {
@@ -4008,7 +4008,7 @@ int RGWRados::fetch_remote_obj(RGWObjectCtx& obj_ctx,
     set_mtime_weight.init(set_mtime, svc.zone->get_zone_short_id(), pg_ver);
   }
 
-  if (cct->_conf->rgw_sync_obj_integrity) {
+  if (cct->_conf->rgw_sync_obj_etag_verify) {
     string trimmed_etag = etag;
 
     /* Remove the leading and trailing double quotes from etag */