From 949265560867ee051b2b81c94d32c0fd777d0936 Mon Sep 17 00:00:00 2001 From: umesh-mv Date: Mon, 9 Dec 2024 09:15:43 +0000 Subject: [PATCH] rgw/rgw_zone : fixing inline-data default value 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 --- src/rgw/rgw_zone.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_zone.cc b/src/rgw/rgw_zone.cc index 1acaf9b3d4fb3..1763ef2253693 100644 --- a/src/rgw/rgw_zone.cc +++ b/src/rgw/rgw_zone.cc @@ -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 */ -- 2.39.5