]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't reuse s->bucket_instance_id for src_bucket
authorCasey Bodley <cbodley@redhat.com>
Thu, 23 Mar 2023 18:49:09 +0000 (14:49 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 23 Mar 2023 18:56:42 +0000 (14:56 -0400)
commit59aee614dc33c6b14585cdbc99de6767cb1d72a4
tree4660c8501b987f32e7acbaaafbbca73360e1676e
parenta779f46a9c59c2aa8ac7bd46d5b58945ed68bdab
rgw: don't reuse s->bucket_instance_id for src_bucket

the bucket_instance_id gets parsed from the "rgwx-bucket-instance"
header, and corresponds to the destination bucket. don't reuse it
for the src_bucket, whose name either comes from the s3 header
"x-amz-copy-source" or the swift header "x-copy-from"

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_op.cc