rgw: fix storage_class in rgw_bucket_dir_entry_meta::dump

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
This commit is contained in:
yuliyang 2018-10-17 08:38:57 +08:00 committed by Yehuda Sadeh
parent 85c5a95f34
commit f3676ebfd4

View File

@ -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);