Skip to content

Commit

Permalink
rgw: swift ignore obj storage policy during change obj meta
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
  • Loading branch information
Jiaying Ren committed Jul 19, 2017
1 parent b39a402 commit b5ce1cc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/rgw/rgw_op.cc
Expand Up @@ -3997,6 +3997,7 @@ void RGWPutMetadataObject::execute()
}

rgw_get_request_metadata(s->cct, s->info, attrs);

/* check if obj exists, read orig attrs */
op_ret = get_obj_attrs(store, s, obj, orig_attrs);
if (op_ret < 0) {
Expand Down
1 change: 0 additions & 1 deletion src/rgw/rgw_op.h
Expand Up @@ -1193,7 +1193,6 @@ class RGWPutMetadataBucket : public RGWOp {
class RGWPutMetadataObject : public RGWOp {
protected:
RGWAccessControlPolicy policy;
string placement_rule;
boost::optional<ceph::real_time> delete_at;
const char *dlo_manifest;

Expand Down
1 change: 0 additions & 1 deletion src/rgw/rgw_rest_swift.cc
Expand Up @@ -943,7 +943,6 @@ int RGWPutMetadataObject_ObjStore_SWIFT::get_params()
return r;
}

placement_rule = s->info.env->get("HTTP_X_STORAGE_POLICY", "");
dlo_manifest = s->info.env->get("HTTP_X_OBJECT_MANIFEST");

return 0;
Expand Down

0 comments on commit b5ce1cc

Please sign in to comment.