]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix check for no storage_class specified in obj copy
authorYehuda Sadeh <yehuda@redhat.com>
Sat, 5 Jan 2019 03:41:08 +0000 (19:41 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Sun, 6 Jan 2019 21:14:13 +0000 (13:14 -0800)
commit53dfdc7e36fb756d0851030d0db0afa0e292057a
tree0ceb5346fa42f6cac12327210ff1e25690441e86
parent1ba297476d857d21709216d36a74858501915282
rgw: fix check for no storage_class specified in obj copy

S3 doesn't allow copying object into itself if it doesn't modify
attributes. Need to check that the object's storage class changes
but we only have that info later, so code rearranged a bit to
allow that.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h