]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix a bug that bucket instance obj can't be removed after resharding completed. 33306/head
authorzhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Fri, 8 Nov 2019 09:50:23 +0000 (17:50 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Feb 2020 10:15:52 +0000 (11:15 +0100)
Fixes: https://tracker.ceph.com/issues/42691
Signed-off-by: zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
(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

index c01e391bf8554548e792e99df7643068837b22f1..1d3b9ff2a1e0e1aa801847abc3f6f9a2ad1c706b 100644 (file)
@@ -337,7 +337,7 @@ int RGWBucketReshard::cancel()
 class BucketInfoReshardUpdate
 {
   RGWRados *store;
-  RGWBucketInfo bucket_info;
+  RGWBucketInfo& bucket_info;
   std::map<string, bufferlist> bucket_attrs;
 
   bool in_progress{false};