]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/osd_operations/pg_advance_map: peering_request_pg_pipeline getter 54060/head
authorMatan Breizman <mbreizma@redhat.com>
Tue, 27 Jun 2023 07:05:28 +0000 (07:05 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 17 Oct 2023 16:20:46 +0000 (16:20 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 9f8159d9e017f5e36db0eb440284bc742a1fd5a5)

src/crimson/osd/osd_operations/pg_advance_map.cc
src/crimson/osd/osd_operations/pg_advance_map.h

index 7a9b0ffb45fcd352b54cef86ca7bbd9007cd905d..3706af810557e327c9f8eeaeb6bd62a433f26619 100644 (file)
@@ -55,6 +55,11 @@ void PGAdvanceMap::dump_detail(Formatter *f) const
   f->close_section();
 }
 
+PGPeeringPipeline &PGAdvanceMap::peering_pp(PG &pg)
+{
+  return pg.peering_request_pg_pipeline;
+}
+
 seastar::future<> PGAdvanceMap::start()
 {
   using cached_map_t = OSDMapService::cached_map_t;
@@ -63,7 +68,7 @@ seastar::future<> PGAdvanceMap::start()
 
   IRef ref = this;
   return enter_stage<>(
-    pg->peering_request_pg_pipeline.process
+    peering_pp(*pg).process
   ).then([this] {
     /*
      * PGAdvanceMap is scheduled at pg creation and when
index c7277f790b3d289166cf6d48b0c0aa6f31ae5cb2..b712cc12e477835fd02284e87bc1c8329923c1b7 100644 (file)
@@ -49,6 +49,9 @@ public:
   std::tuple<
     PGPeeringPipeline::Process::BlockingEvent
   > tracking_events;
+
+private:
+  PGPeeringPipeline &peering_pp(PG &pg);
 };
 
 }