fix https://tracker.ceph.com/issues/42444
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
(cherry picked from commit
ef3ec2e56236fb031ddd4404121449c656a62481)
Conflicts:
src/rgw/rgw_putobj_processor.cc
- cur_manifest assignment looks different in nautilus
size_t pos = s.find("-");
cur_etag = s.substr(0, pos);
}
+
+ iter = astate->attrset.find(RGW_ATTR_STORAGE_CLASS);
+ if (iter != astate->attrset.end()) {
+ tail_placement_rule.storage_class = iter->second.to_str();
+ }
cur_manifest = &astate->manifest;
manifest.set_prefix(cur_manifest->get_prefix());
}