]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rearrange / simplify RGWBucket::link logic - start bucket move support
authorMarcus Watts <mwatts@redhat.com>
Mon, 27 Aug 2018 20:39:37 +0000 (16:39 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Tue, 30 Jul 2019 08:30:45 +0000 (14:00 +0530)
commit422cc79ae44e131958d8b5720ce7ae1424e7beb5
tree7ef1f297a14759bcfd66b50c99f1d52f39970dc3
parent190f2935505dd504ee2c33d9966e84020d17faa0
rearrange / simplify RGWBucket::link logic - start bucket move support

The existing RGWBucket::link logic changed things incrementally in
order to relink a bucket.  When doing a "bucket move", this is no longer
a good idea - bucket objects must be written to new names which don't
exist, so it is better to create then wholly out of in-memory data.

Also, add != for rgw_bucket - inverse of existing of ==, provides
another option to arrange code to make it more readable.

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