]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/services: don't expose RGWServices::notify 66522/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 7 Oct 2025 16:09:11 +0000 (12:09 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 21 May 2026 15:38:33 +0000 (11:38 -0400)
RGWSI_Notify is only used internally by RGWSI_SysObj_Cache where the
dependency is injected to RGWSI_SysObj_Cache::init(). there's no need to
expose a pointer to RGWSI_Notify to the rest of the application,
especially now that it can be a nullptr

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit dfc379ccf31cb2b4a68d123af8af70b7aae0b377)

src/rgw/driver/rados/rgw_service.cc
src/rgw/driver/rados/rgw_service.h

index 95a76969b731dd6428a554a42e9800d4d878914e..efee4aed3270323ee553cc7d54135a7b7183c7bf 100644 (file)
@@ -281,7 +281,6 @@ int RGWServices::do_init(CephContext *_cct, rgw::sal::RadosStore* driver, bool h
   config_key = config_key_rados;
   datalog_rados = _svc.datalog_rados.get();
   mdlog = _svc.mdlog.get();
-  notify = _svc.notify.get();
   zone = _svc.zone.get();
   zone_utils = _svc.zone_utils.get();
   quota = _svc.quota.get();
index d7ed9f49c07a486ee949ba5bb276020d0b76484a..198aa79e4de8e1f3f3dda6b1d74f7630bdd13524 100644 (file)
@@ -133,7 +133,6 @@ struct RGWServices
   RGWSI_ConfigKey *config_key{nullptr};
   RGWDataChangesLog *datalog_rados{nullptr};
   RGWSI_MDLog *mdlog{nullptr};
-  RGWSI_Notify *notify{nullptr};
   RGWSI_Zone *zone{nullptr};
   RGWSI_ZoneUtils *zone_utils{nullptr};
   RGWSI_Quota *quota{nullptr};