]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/multisite: remove source object's RGW_ATTR_OBJ_REPLICATION_TRACE during copy_object.
authorShilpa Jagannath <smanjara@redhat.com>
Wed, 10 Jul 2024 19:07:13 +0000 (15:07 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Tue, 23 Jul 2024 16:46:29 +0000 (09:46 -0700)
commit9e546da8f254945f8f4818f98ff4f4d9c3ba6ede
tree59a1e521502f5a1a580913527dfa880c9625e5e9
parentc8a1679e7a692f7c408fb75645dd40731d50d7fa
rgw/multisite: remove source object's RGW_ATTR_OBJ_REPLICATION_TRACE during copy_object.
if a copy_object is executed on a replicated object, it fails to sync the copied object
to the original source zone where the source object was first written and replicated from.
this is because copy_object retains source attrs by default. when a get_obj() is issued
from a fetch_remote_obj() call during sync, we check for this RGW_ATTR_OBJ_REPLICATION_TRACE
and if that destination zone is already present in the trace, we return NOT_MODIFIED error,
thus failing to replicate the copied object.

also remove RGW_ATTR_OBJ_REPLICATION_STATUS and RGW_ATTR_OBJ_REPLICATION_TIMESTAMP

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
(cherry picked from commit 46eef5fb5c06ac1af723cba0e3c3980fb6a431ce)
src/rgw/driver/rados/rgw_rados.cc