From: zhang Shaowen Date: Fri, 8 Nov 2019 09:50:23 +0000 (+0800) Subject: rgw: fix a bug that bucket instance obj can't be removed after resharding completed. X-Git-Tag: v14.2.8~78^2~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32822%2Fhead;p=ceph.git rgw: fix a bug that bucket instance obj can't be removed after resharding completed. Fixes: https://tracker.ceph.com/issues/42691 Signed-off-by: zhang Shaowen (cherry picked from commit 03039d9630e65088b525e9637dfc6f8f2c0a2702) Conflicts: src/rgw/rgw_reshard.cc - in master, *store has type "rgw::sal::RGWRadosStore", while in nautilus it has type "RGWRados", but this line appears to be merely incidental to the patch --- diff --git a/src/rgw/rgw_reshard.cc b/src/rgw/rgw_reshard.cc index 7237e5073ce0..39bd5f06a7cc 100644 --- a/src/rgw/rgw_reshard.cc +++ b/src/rgw/rgw_reshard.cc @@ -345,7 +345,7 @@ int RGWBucketReshard::cancel() class BucketInfoReshardUpdate { RGWRados *store; - RGWBucketInfo bucket_info; + RGWBucketInfo& bucket_info; std::map bucket_attrs; bool in_progress{false};