]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/CloudTransition: Update object metadata and bi post cloud tranistion
authorSoumya Koduri <skoduri@redhat.com>
Tue, 28 Jul 2020 20:27:04 +0000 (01:57 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Thu, 18 Nov 2021 07:22:47 +0000 (12:52 +0530)
commit23b962157acd28fed77a4db6969738bccb12463c
tree902342b979db84cd8663c2e220f13795c133f627
parentc687d01d1b79493ca8b9eede03be61f76e996c02
rgw/CloudTransition: Update object metadata and bi post cloud tranistion

After transitioning the object to cloud, following updates are done
to the existing object.

* In bi entry, change object category to CloudTiered
* Update cloud-tier details (like endpoint, keys etc) in Object Manifest
* Mark the tail objects expired to be deleted by gc

TODO:
* Update all the cloud config details including multiparts
* Check if any other object metadata needs to be changed
* Optimize to avoid using read_op again to read attrs.
* Check for mtime to resolve conflicts when multiple zones try to transition obj

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/cls/rgw/cls_rgw_types.h
src/rgw/rgw_common.h
src/rgw/rgw_json_enc.cc
src/rgw/rgw_lc.cc
src/rgw/rgw_obj_manifest.h