From 6678e5df2ad1afa0eb09322ecdfa786fde14ae2f Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 25 Aug 2023 16:01:05 -0700 Subject: [PATCH] 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 --- src/crimson/osd/osd_operations/peering_event.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 -- 2.47.3