From: Aishwarya Mathuria Date: Thu, 8 Jan 2026 10:57:37 +0000 (+0000) Subject: crimson/osd/shard_services: inherit from peering_sharded_service X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f970fcda01fd6c27b28f0c38ff9ffee241a0f04;p=ceph.git crimson/osd/shard_services: inherit from peering_sharded_service Update ShardServices to inherit from seastar::peering_sharded_service. This allows the service to access its own sharded container directly via container() rather than manually storing a reference to it. Signed-off-by: Aishwarya Mathuria --- diff --git a/src/crimson/osd/shard_services.h b/src/crimson/osd/shard_services.h index 7ab1eef6ce1..803ff092d79 100644 --- a/src/crimson/osd/shard_services.h +++ b/src/crimson/osd/shard_services.h @@ -395,7 +395,8 @@ private: /** * Represents services available to each PG */ -class ShardServices : public OSDMapService { +class ShardServices : public OSDMapService, + public seastar::peering_sharded_service { friend class PGShardManager; friend class OSD; using cached_map_t = OSDMapService::cached_map_t;