storage class attr of the object appended is empty.
Fixes: https://tracker.ceph.com/issues/53902
Signed-off-by: zhiming zhang <zhangzhm1@chinatelecom.cn>
(cherry picked from commit
3662b22e87cd53b9a0045a42b3261ff58b78602d)
iter = astate->attrset.find(RGW_ATTR_STORAGE_CLASS);
if (iter != astate->attrset.end()) {
tail_placement_rule.storage_class = iter->second.to_str();
+ } else {
+ tail_placement_rule.storage_class = RGW_STORAGE_CLASS_STANDARD;
}
cur_manifest = &(*astate->manifest);
manifest.set_prefix(cur_manifest->get_prefix());