]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Dump tier_* config in RGWObjManifest
authorSoumya Koduri <skoduri@redhat.com>
Mon, 24 Apr 2023 17:44:15 +0000 (23:14 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Fri, 21 Jun 2024 17:58:44 +0000 (23:28 +0530)
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 <skoduri@redhat.com>
(cherry picked from commit 4db632567d29ebc5df753faac9c80444884cc785)
(cherry picked from commit dacf0685a5e2d69b57ad933c287ad4549bdd8e93)

src/rgw/rgw_obj_manifest.cc

index 5af0b12a8daf80eae8010fc2e773f35afd960aca..a5ac3676bb55a356cb48abcedf5c4edfd363658b 100644 (file)
@@ -582,6 +582,10 @@ void RGWObjManifest::dump(Formatter *f) const
   ::encode_json("tail_instance", tail_instance, f);
   ::encode_json("tail_placement", tail_placement, 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
   // iterators that would write do the log