From: yuliyang Date: Wed, 17 Oct 2018 00:38:57 +0000 (+0800) Subject: rgw: fix storage_class in rgw_bucket_dir_entry_meta::dump X-Git-Tag: v14.1.0~314^2~44 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f3676ebfd4fd19007facf595d540ddc0589fcbc6;p=ceph.git rgw: fix storage_class in rgw_bucket_dir_entry_meta::dump Signed-off-by: yuliyang --- diff --git a/src/cls/rgw/cls_rgw_types.cc b/src/cls/rgw/cls_rgw_types.cc index 6be138155e2e..c2cac76e2b5e 100644 --- a/src/cls/rgw/cls_rgw_types.cc +++ b/src/cls/rgw/cls_rgw_types.cc @@ -58,7 +58,7 @@ void rgw_bucket_dir_entry_meta::dump(Formatter *f) const utime_t ut(mtime); encode_json("mtime", ut, f); encode_json("etag", etag, f); - encode_json("content_type", content_type, f); + encode_json("storage_class", storage_class, f); encode_json("owner", owner, f); encode_json("owner_display_name", owner_display_name, f); encode_json("content_type", content_type, f); @@ -75,7 +75,7 @@ void rgw_bucket_dir_entry_meta::decode_json(JSONObj *obj) { JSONDecoder::decode_json("mtime", ut, obj); mtime = ut.to_real_time(); JSONDecoder::decode_json("etag", etag, obj); - JSONDecoder::decode_json("content_type", content_type, obj); + JSONDecoder::decode_json("storage_class", storage_class, obj); JSONDecoder::decode_json("owner", owner, obj); JSONDecoder::decode_json("owner_display_name", owner_display_name, obj); JSONDecoder::decode_json("content_type", content_type, obj);