]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 16 Jan 2026 10:56:26 +0000 (16:26 +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 e28717cfc40f74ca7f84a4c202668305a24db7b5..8ec5eb629cd26cf96f052d57d87a4cd6d095312c 100644 (file)
@@ -375,7 +375,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;