]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
RGW:Multisite: Verify if the synced object is identical to source
authorPrasad Krishnan <prasad.krishnan@flipkart.com>
Sun, 23 Feb 2020 06:09:49 +0000 (11:39 +0530)
committerYang Honggang <yanghonggang@kuaishou.com>
Wed, 10 Feb 2021 11:53:59 +0000 (19:53 +0800)
commitf1064169f38a2d674e8cac48cd17307ed859b962
tree40d123adc8904fabde017ba49863579dc1b75a29
parentf9c422aad058900772e144b1e747cee5fcb5727d
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 <prasad.krishnan@flipkart.com>
(cherry picked from commit 23fb5d7b786f1034a02c991c6a648e455b5b9c30)

Conflicts:
src/rgw/rgw_rados.cc
src/common/legacy_config_opts.h
src/common/options.cc
src/rgw/rgw_rados.cc