]> 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)
committerNathan Cutler <ncutler@suse.com>
Thu, 28 Jan 2021 15:45:32 +0000 (16:45 +0100)
commit58701202ffb61ccdeae3466210ae2a8827d42a58
tree69cd52a3fa8c9fa16cfa537d82b2f6557e52bac1
parentfbe31b145efeeba5cb771d2bfd4a8c17f1ace7ad
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)
src/common/legacy_config_opts.h
src/common/options.cc
src/rgw/rgw_rados.cc