]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/cloudtier: Fix bug with decoding tier_targets
authorSoumya Koduri <skoduri@redhat.com>
Wed, 19 Apr 2023 11:14:24 +0000 (16:44 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Fri, 21 Jun 2024 17:58:44 +0000 (23:28 +0530)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit e33946b89ee9a3c61f0c4e08597f67b42ca4850b)
(cherry picked from commit 5071cb6c63225942bb9aba35ddd0456735fc57f9)

src/rgw/rgw_zone.cc

index bbeea7efb84e1e1ad39c1d361e412e697de48466..6cf7809995e645b2d5d01bb75508593aa2f7d882 100644 (file)
@@ -2360,9 +2360,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 RGWZoneGroup::dump(Formatter *f) const