]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/osd_operations/peering_event: make PGPeeringPipeline a struct
authorSamuel Just <sjust@redhat.com>
Fri, 25 Aug 2023 23:01:05 +0000 (16:01 -0700)
committerSamuel Just <sjust@redhat.com>
Mon, 11 Dec 2023 04:10:18 +0000 (04:10 +0000)
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 <sjust@redhat.com>
src/crimson/osd/osd_operations/peering_event.h

index 6bbfe6c91174c3725fb57e7acdeab32e192eee07..dad1076a93bb4800508c5aad9e637fa12e25027b 100644 (file)
@@ -23,19 +23,13 @@ class ShardServices;
 class PG;
 class BackfillRecovery;
 
-  class PGPeeringPipeline {
+  struct PGPeeringPipeline {
     struct AwaitMap : OrderedExclusivePhaseT<AwaitMap> {
       static constexpr auto type_name = "PeeringEvent::PGPipeline::await_map";
     } await_map;
     struct Process : OrderedExclusivePhaseT<Process> {
       static constexpr auto type_name = "PeeringEvent::PGPipeline::process";
     } process;
-    template <class T>
-    friend class PeeringEvent;
-    friend class LocalPeeringEvent;
-    friend class RemotePeeringEvent;
-    friend class PGAdvanceMap;
-    friend class BackfillRecovery;
   };
 
 template <class T>