]> 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>
Tue, 11 Apr 2023 13:11:55 +0000 (09:11 -0400)
commitee362603e3038ed852d8fc1e2e529431855c9b43
treeddf192a3fb3926ce63c3a1104c233e5ac62fed64
parent0bf5a0474702079adfe5c6005c0fec6a21d06c86
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>
(cherry picked from commit 59aee614dc33c6b14585cdbc99de6767cb1d72a4)
src/rgw/rgw_op.cc