Skip to content

Commit

Permalink
Merge pull request ceph#60430 from ivancich/wip-fix-multipart-empty-s…
Browse files Browse the repository at this point in the history
…torage-class

rgw: fix empty storage class on display of multipart uploads

Reviewed-by: Adam Emerson <[email protected]>
  • Loading branch information
ivancich authored Jan 2, 2025
2 parents 5278f69 + eab096c commit 4a7b364
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cls/rgw/cls_rgw_types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ 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("storage_class", storage_class, f);
encode_json("storage_class",
rgw_placement_rule::get_canonical_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);
Expand Down

0 comments on commit 4a7b364

Please sign in to comment.