From 78394bb3ff3e3717ccdd09b0f9e898c49486a5ce Mon Sep 17 00:00:00 2001 From: Prasad Krishnan Date: Wed, 18 Mar 2020 18:03:15 +0000 Subject: [PATCH] RGW:Multisite: Rename rgw_copy_verify_object to rgw_sync_obj_integrity This patch renames the option rgw_copy_verify_object to rgw_sync_obj_integrity and incorporates more changes suggested through code-review comments. Signed-off-by: Prasad Krishnan (cherry picked from commit 31e944fced60e47139973361cbb753aeaeb3c863) --- src/common/legacy_config_opts.h | 2 +- src/common/options.cc | 10 ++++--- src/rgw/rgw_etag_verifier.cc | 20 ++++++------- src/rgw/rgw_etag_verifier.h | 6 ++-- src/rgw/rgw_rados.cc | 53 ++++++++++++++++++--------------- 5 files changed, 48 insertions(+), 43 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 1084eae01b10..e93dd2e5cee6 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1446,7 +1446,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_copy_verify_object, OPT_BOOL) // verify if the copied object is identical to source +OPTION(rgw_sync_obj_integrity, 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 diff --git a/src/common/options.cc b/src/common/options.cc index 3540c239d9a9..f7edb11586aa 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6390,12 +6390,14 @@ std::vector