From dacf0685a5e2d69b57ad933c287ad4549bdd8e93 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Mon, 24 Apr 2023 23:14:15 +0530 Subject: [PATCH] rgw: Dump tier_* config in RGWObjManifest This was missed as part of refactoring done to encoder and decoder methods (https://github.com/ceph/ceph/commit/2414c7584eb90bfff42d512879a0aa6b220d359e) Signed-off-by: Soumya Koduri (cherry picked from commit 4db632567d29ebc5df753faac9c80444884cc785) --- src/rgw/driver/rados/rgw_obj_manifest.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rgw/driver/rados/rgw_obj_manifest.cc b/src/rgw/driver/rados/rgw_obj_manifest.cc index 3838f5cf32897..92ade8120fdf8 100644 --- a/src/rgw/driver/rados/rgw_obj_manifest.cc +++ b/src/rgw/driver/rados/rgw_obj_manifest.cc @@ -324,6 +324,11 @@ void RGWObjManifest::dump(Formatter *f) const ::encode_json("rules", rules, f); ::encode_json("tail_instance", tail_instance, f); ::encode_json("tail_placement", tail_placement, f); + ::encode_json("tier_type", tier_type, f); + + if (tier_type == "cloud-s3") { + ::encode_json("tier_config", tier_config, f); + } // nullptr being passed into iterators since there // is no cct and we aren't doing anything with these -- 2.39.5