rgw: Use STANDARD storage class in objects appending operation when the
Reviewed-by: Casey Bodley <cbodley@redhat.com>
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);
+ cur_manifest = dynamic_cast<rgw::sal::RadosObject*>(head_obj.get())->get_manifest();
manifest.set_prefix(cur_manifest->get_prefix());
astate->keep_tail = true;
}