]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #44610 from xijiacun/append-object
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 2 Sep 2022 16:37:10 +0000 (12:37 -0400)
committerGitHub <noreply@github.com>
Fri, 2 Sep 2022 16:37:10 +0000 (12:37 -0400)
rgw: Use STANDARD storage class in objects appending operation when the

Reviewed-by: Casey Bodley <cbodley@redhat.com>
1  2 
src/rgw/rgw_putobj_processor.cc

index c2c2c476016f96303f51b2bd25a8803ea9aef6f2,b1e8c9b88bf5fb5ab03a649d1c4e8afc5b102fd7..00d3ed68ed0ecf7f6f4bc5cb27a201c053d0b458
@@@ -577,8 -571,10 +577,10 @@@ int AppendObjectProcessor::prepare(opti
      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;
    }