From: Prasad Krishnan Date: Sun, 23 Feb 2020 06:09:49 +0000 (+0530) Subject: RGW:Multisite: Verify if the synced object is identical to source X-Git-Tag: v15.2.9~47^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=58701202ffb61ccdeae3466210ae2a8827d42a58;p=ceph.git RGW:Multisite: Verify if the synced object is identical to source Introduce an option 'rgw_copy_verify_object' which allows the object copied from remote cluster through multisite sync is identical to the source object. This is done by generating the MD5 checksum of the data being copied and compared to the ETAG stored as part of the object's attribute. Signed-off-by: Prasad Krishnan (cherry picked from commit 23fb5d7b786f1034a02c991c6a648e455b5b9c30) --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index ca8f252b7fbe..1084eae01b10 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1446,6 +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_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 73a483fa1cac..3540c239d9a9 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6390,6 +6390,13 @@ std::vector