]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_zone : fixing inline-data default value 60990/head
authorumesh-mv <umeshmuthuvara@gmail.com>
Mon, 9 Dec 2024 09:15:43 +0000 (09:15 +0000)
committerumesh-mv <umeshmuthuvara@gmail.com>
Thu, 12 Dec 2024 04:01:57 +0000 (04:01 +0000)
added a check and set inline_data to true if the default value was not true

Fixes: https://tracker.ceph.com/issues/67933
Signed-off-by: umesh-mv <umeshmuthuvara@gmail.com>
src/rgw/rgw_zone.cc

index 1acaf9b3d4fb33a58e473ea16ae1e7e868c44d0d..1763ef225369334f2372c609fe3c629651d24c68 100644 (file)
@@ -790,7 +790,9 @@ void RGWZonePlacementInfo::decode_json(JSONObj *obj)
   JSONDecoder::decode_json("data_extra_pool", data_extra_pool, obj);
   uint32_t it;
   JSONDecoder::decode_json("index_type", it, obj);
-  JSONDecoder::decode_json("inline_data", inline_data, obj);
+  if(!JSONDecoder::decode_json("inline_data", inline_data, obj)) {
+    inline_data = true;
+  }
   index_type = (rgw::BucketIndexType)it;
 
   /* backward compatibility, these are now defined in storage_classes */