Skip to content

Commit 2971b9e

Browse files
authored
Merge pull request ceph#60990 from umesh-mv/wip-umeshmv-67933
rgw/rgw_zone : fixing inline-data default value Reviewed-by: Casey Bodley <[email protected]>
2 parents 538be0d + 9492655 commit 2971b9e

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)