]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rados: remove unused RGWReshard::clear_bucket_resharding()
authorCasey Bodley <cbodley@redhat.com>
Fri, 15 Nov 2024 18:18:00 +0000 (13:18 -0500)
committerCasey Bodley <cbodley@redhat.com>
Mon, 7 Apr 2025 15:19:12 +0000 (11:19 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_reshard.cc
src/rgw/driver/rados/rgw_reshard.h

index d4999b361985434ed71fc6ad598229cd59185a01..82705602b361b90ae0ac6819995c520f41ca7fa5 100644 (file)
@@ -1499,17 +1499,6 @@ int RGWReshard::remove(const DoutPrefixProvider *dpp, const cls_rgw_reshard_entr
   return ret;
 }
 
-int RGWReshard::clear_bucket_resharding(const DoutPrefixProvider *dpp, const string& bucket_instance_oid, cls_rgw_reshard_entry& entry)
-{
-  int ret = cls_rgw_clear_bucket_resharding(store->getRados()->reshard_pool_ctx, bucket_instance_oid);
-  if (ret < 0) {
-    ldpp_dout(dpp, -1) << "ERROR: failed to clear bucket resharding, bucket_instance_oid=" << bucket_instance_oid << dendl;
-    return ret;
-  }
-
-  return 0;
-}
-
 int RGWReshardWait::wait(const DoutPrefixProvider* dpp, optional_yield y)
 {
   std::unique_lock lock(mutex);
index bdd7f67873540a443609eff441d4f6553307eb24..7a889318902d099931b7289077e493fe56a152e6 100644 (file)
@@ -238,7 +238,6 @@ public:
   int get(const DoutPrefixProvider *dpp, cls_rgw_reshard_entry& entry);
   int remove(const DoutPrefixProvider *dpp, const cls_rgw_reshard_entry& entry, optional_yield y);
   int list(const DoutPrefixProvider *dpp, int logshard_num, std::string& marker, uint32_t max, std::list<cls_rgw_reshard_entry>& entries, bool *is_truncated);
-  int clear_bucket_resharding(const DoutPrefixProvider *dpp, const std::string& bucket_instance_oid, cls_rgw_reshard_entry& entry);
 
   /* reshard thread */
   int process_entry(const cls_rgw_reshard_entry& entry, int max_entries,