From: Casey Bodley Date: Tue, 29 Apr 2025 15:16:43 +0000 (-0400) Subject: rgw: remove unused RGWObjVersionTracker from RGWDeleteBucket X-Git-Tag: v20.1.0~264^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b3463a1cb1744fd17036c5efb60032ce70b4dad7;p=ceph.git rgw: remove unused RGWObjVersionTracker from RGWDeleteBucket Signed-off-by: Casey Bodley (cherry picked from commit 46d6f817e81e38fb30a5ebe71e9d6c11caeabd39) --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index b924e51cc85..673a7fcf325 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -3889,25 +3889,6 @@ void RGWDeleteBucket::execute(optional_yield y) op_ret = -ERR_NO_SUCH_BUCKET; return; } - RGWObjVersionTracker ot; - ot.read_version = s->bucket->get_version(); - - if (s->system_request) { - string tag = s->info.args.get(RGW_SYS_PARAM_PREFIX "tag"); - string ver_str = s->info.args.get(RGW_SYS_PARAM_PREFIX "ver"); - if (!tag.empty()) { - ot.read_version.tag = tag; - uint64_t ver; - string err; - ver = strict_strtol(ver_str.c_str(), 10, &err); - if (!err.empty()) { - ldpp_dout(this, 0) << "failed to parse ver param" << dendl; - op_ret = -EINVAL; - return; - } - ot.read_version.ver = ver; - } - } const bool own_bucket = s->penv.site->get_zonegroup().get_id() == s->bucket->get_info().zonegroup;