]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused objv tracker
authorShilpa Jagannath <smanjara@redhat.com>
Thu, 9 Jan 2025 15:18:28 +0000 (10:18 -0500)
committerShilpa Jagannath <smanjara@redhat.com>
Fri, 4 Apr 2025 17:16:54 +0000 (13:16 -0400)
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
src/rgw/driver/rados/rgw_rados.cc

index 0bef9ac672d4338baca397b9fbae878597ff13c1..e85fc4a1c6889c770fff983d110f471555f230d6 100644 (file)
@@ -5681,7 +5681,7 @@ int RGWRados::delete_bucket(RGWBucketInfo& bucket_info, std::map<std::string, bu
   // delete_bucket checks for objects in the bucket on other zones,
   // if there is bucket sync policy configured, by doing unordered
   // listing with max_key=1. if objects are found, don't delete the bucket.
-  if (svc.zone->is_syncing_bucket_meta(bucket)) {
+  if (svc.zone->is_syncing_bucket_meta()) {
     // check if asymmetric replication policy exists either at zonegroup or bucket level
     auto zg_sync_policy = svc.zone->get_zonegroup().sync_policy;
     bool is_zg_policy_directional = zg_sync_policy.is_directional();
@@ -5740,7 +5740,6 @@ int RGWRados::delete_bucket(RGWBucketInfo& bucket_info, std::map<std::string, bu
 
   /* if the bucket is not synced we can remove the meta file */
   if (!svc.zone->is_syncing_bucket_meta()) {
-    RGWObjVersionTracker objv_tracker;
     r = ctl.bucket->remove_bucket_instance_info(bucket, bucket_info, y, dpp);
     if (r < 0) {
       return r;