Skip to content

Commit 52df364

Browse files
author
Shilpa Jagannath
committed
rgw: remove unused objv tracker
Signed-off-by: Shilpa Jagannath <[email protected]>
1 parent 9e7385e commit 52df364

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rgw/driver/rados/rgw_rados.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5681,7 +5681,7 @@ int RGWRados::delete_bucket(RGWBucketInfo& bucket_info, std::map<std::string, bu
56815681
// delete_bucket checks for objects in the bucket on other zones,
56825682
// if there is bucket sync policy configured, by doing unordered
56835683
// listing with max_key=1. if objects are found, don't delete the bucket.
5684-
if (svc.zone->is_syncing_bucket_meta(bucket)) {
5684+
if (svc.zone->is_syncing_bucket_meta()) {
56855685
// check if asymmetric replication policy exists either at zonegroup or bucket level
56865686
auto zg_sync_policy = svc.zone->get_zonegroup().sync_policy;
56875687
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
57405740

57415741
/* if the bucket is not synced we can remove the meta file */
57425742
if (!svc.zone->is_syncing_bucket_meta()) {
5743-
RGWObjVersionTracker objv_tracker;
57445743
r = ctl.bucket->remove_bucket_instance_info(bucket, bucket_info, y, dpp);
57455744
if (r < 0) {
57465745
return r;

0 commit comments

Comments
 (0)