]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/shard_services: inherit from peering_sharded_service
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 8 Jan 2026 10:57:37 +0000 (10:57 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Thu, 11 Jun 2026 04:49:14 +0000 (10:19 +0530)
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 <amathuri@redhat.com>
src/crimson/osd/shard_services.h

index 7ab1eef6ce15040450f29e368fe453882703f8fd..803ff092d79763cc340b5a040bd0f52b1f1f9063 100644 (file)
@@ -395,7 +395,8 @@ private:
 /**
  * Represents services available to each PG
  */
-class ShardServices : public OSDMapService {
+class ShardServices : public OSDMapService,
+                      public seastar::peering_sharded_service<ShardServices> {
   friend class PGShardManager;
   friend class OSD;
   using cached_map_t = OSDMapService::cached_map_t;