Skip to content

Commit

Permalink
rgw: Dump tier_* config in RGWObjManifest
Browse files Browse the repository at this point in the history
This was missed as part of refactoring done to encoder
and decoder methods (ceph@2414c75)

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 4db6325)
  • Loading branch information
soumyakoduri committed May 23, 2023
1 parent f7e3e94 commit dacf068
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rgw/driver/rados/rgw_obj_manifest.cc
Expand Up @@ -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
Expand Down

0 comments on commit dacf068

Please sign in to comment.