mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
rgw: fix storage_class in rgw_bucket_dir_entry_meta::dump
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
This commit is contained in:
parent
85c5a95f34
commit
f3676ebfd4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user