From 8595d8fda9c336fad64720b69d3cc8da5e4fc187 Mon Sep 17 00:00:00 2001 From: zhang Shaowen Date: Fri, 8 Nov 2019 17:50:23 +0800 Subject: [PATCH] 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 --- src/rgw/rgw_reshard.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_reshard.cc b/src/rgw/rgw_reshard.cc index c01e391bf8554..1d3b9ff2a1e0e 100644 --- a/src/rgw/rgw_reshard.cc +++ b/src/rgw/rgw_reshard.cc @@ -337,7 +337,7 @@ int RGWBucketReshard::cancel() class BucketInfoReshardUpdate { RGWRados *store; - RGWBucketInfo bucket_info; + RGWBucketInfo& bucket_info; std::map bucket_attrs; bool in_progress{false}; -- 2.39.5