From: Samuel Just Date: Fri, 25 Aug 2023 23:01:05 +0000 (-0700) Subject: crimson/osd/osd_operations/peering_event: make PGPeeringPipeline a struct X-Git-Tag: v19.3.0~296^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6678e5df2ad1afa0eb09322ecdfa786fde14ae2f;p=ceph.git crimson/osd/osd_operations/peering_event: make PGPeeringPipeline a struct There will ultimately be many Operation types that need to use the PGPeeringPipeline, let's not enumerate them as friends. Signed-off-by: Samuel Just --- diff --git a/src/crimson/osd/osd_operations/peering_event.h b/src/crimson/osd/osd_operations/peering_event.h index 6bbfe6c91174..dad1076a93bb 100644 --- a/src/crimson/osd/osd_operations/peering_event.h +++ b/src/crimson/osd/osd_operations/peering_event.h @@ -23,19 +23,13 @@ class ShardServices; class PG; class BackfillRecovery; - class PGPeeringPipeline { + struct PGPeeringPipeline { struct AwaitMap : OrderedExclusivePhaseT { static constexpr auto type_name = "PeeringEvent::PGPipeline::await_map"; } await_map; struct Process : OrderedExclusivePhaseT { static constexpr auto type_name = "PeeringEvent::PGPipeline::process"; } process; - template - friend class PeeringEvent; - friend class LocalPeeringEvent; - friend class RemotePeeringEvent; - friend class PGAdvanceMap; - friend class BackfillRecovery; }; template