From: Soumya Koduri Date: Wed, 19 Apr 2023 11:14:24 +0000 (+0530) Subject: rgw/cloudtier: Fix bug with decoding tier_targets X-Git-Tag: v19.0.0~1284^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e33946b89ee9a3c61f0c4e08597f67b42ca4850b;p=ceph.git rgw/cloudtier: Fix bug with decoding tier_targets Signed-off-by: Soumya Koduri --- diff --git a/src/rgw/rgw_zone.cc b/src/rgw/rgw_zone.cc index a45862fca37e..b743689edc0d 100644 --- a/src/rgw/rgw_zone.cc +++ b/src/rgw/rgw_zone.cc @@ -755,9 +755,7 @@ void RGWZoneGroupPlacementTarget::decode_json(JSONObj *obj) if (storage_classes.empty()) { storage_classes.insert(RGW_STORAGE_CLASS_STANDARD); } - if (!tier_targets.empty()) { - JSONDecoder::decode_json("tier_targets", tier_targets, obj); - } + JSONDecoder::decode_json("tier_targets", tier_targets, obj); } void RGWZonePlacementInfo::dump(Formatter *f) const