]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused block of code 49795/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 15 Nov 2022 02:19:19 +0000 (21:19 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 9 Feb 2023 19:36:07 +0000 (14:36 -0500)
The removed block of code ultimately calls
RGWRados::bucket_set_reshard as the code block immediately below does,
although this block of code does not restore it to its correct "not
resharding" state.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/rgw_reshard.cc

index 66977374559afde13466b9ca6dcc514753c1c2f1..6bf3e6bd5e71c79491efa161a328448d6318e3d5 100644 (file)
@@ -291,13 +291,6 @@ int RGWBucketReshard::clear_resharding(const DoutPrefixProvider *dpp,
                                       const RGWBucketInfo& bucket_info)
 {
   int ret;
-  ret = clear_index_shard_reshard_status(dpp, store, bucket_info);
-  if (ret < 0) {
-    ldpp_dout(dpp, 0) << "RGWBucketReshard::" << __func__ <<
-      " ERROR: error clearing reshard status from index shard " <<
-      cpp_strerror(-ret) << dendl;
-    return ret;
-  }
 
   // default constructed = NOT_RESHARDING
   cls_rgw_bucket_instance_entry instance_entry;