Skip to content

Commit 9492655

Browse files
committed
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 <[email protected]>
1 parent baa6b7b commit 9492655

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rgw/rgw_zone.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,9 @@ void RGWZonePlacementInfo::decode_json(JSONObj *obj)
790790
JSONDecoder::decode_json("data_extra_pool", data_extra_pool, obj);
791791
uint32_t it;
792792
JSONDecoder::decode_json("index_type", it, obj);
793-
JSONDecoder::decode_json("inline_data", inline_data, obj);
793+
if(!JSONDecoder::decode_json("inline_data", inline_data, obj)) {
794+
inline_data = true;
795+
}
794796
index_type = (rgw::BucketIndexType)it;
795797

796798
/* backward compatibility, these are now defined in storage_classes */

0 commit comments

Comments
 (0)