]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: bucket link: "bucket move"; handle bucket names too.
authorMarcus Watts <mwatts@redhat.com>
Sat, 8 Sep 2018 01:26:46 +0000 (21:26 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Tue, 30 Jul 2019 08:30:45 +0000 (14:00 +0530)
commitb908e45c024d96ff973d9eddd8a96bcddc5583bf
treee0773a1a32f6308e5357288d9a4daec9557605b9
parent100865d7a624c96c673a78adb6159bb2a47d9f6b
rgw: bucket link: "bucket move"; handle bucket names too.

This is the remainder of bucket move function.  Implement bucket "rename"
- use string passed in via '--bucket-new-name' to optinally override
the resultant bucket name when doing bucket link.  This is basically
a slight generalization of changing the tenant of a bucket; the same
operations are required for either.

Further refinements included here are minor improvements to associated
error messages.

This does not change any "tail placement" information in any objects
contained in the bucket.  The bucket name is encoded there, along with
the bucket id, but neither appears to be used, and the existing reshard
logic which changes bucket ids also does not appear to alter that.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_bucket.cc