From: Matt Benjamin Date: Mon, 10 Apr 2023 15:22:56 +0000 (-0400) Subject: rgwlc: constify notification event_type X-Git-Tag: v19.0.0~159^2~5 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ab2133cf67ab14a6191b0268af1dbaf699102e87;p=ceph-ci.git rgwlc: constify notification event_type Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_lc.cc b/src/rgw/rgw_lc.cc index 3ab419172b0..77410c9f010 100644 --- a/src/rgw/rgw_lc.cc +++ b/src/rgw/rgw_lc.cc @@ -824,7 +824,7 @@ int RGWLC::handle_multipart_expiration(rgw::sal::Bucket* target, params.ns = RGW_OBJ_NS_MULTIPART; params.access_list_filter = &mp_filter; - auto event_type = rgw::notify::ObjectExpirationAbortMPU; + const auto event_type = rgw::notify::ObjectExpirationAbortMPU; std::string version_id; auto pf = [&](RGWLC::LCWorker* wk, WorkQ* wq, WorkItem& wi) { @@ -1326,8 +1326,8 @@ public: auto& obj = oc.obj; - auto event_type = (bucket->versioned() && - oc.o.is_current() && !oc.o.is_delete_marker()) ? + const auto event_type = (bucket->versioned() && + oc.o.is_current() && !oc.o.is_delete_marker()) ? rgw::notify::ObjectTransitionCurrent : rgw::notify::ObjectTransitionNoncurrent;