]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: move the SnapTrimmer-related handlers of PeeringState from .h to .cc
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 26 Oct 2022 11:50:22 +0000 (11:50 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 28 Feb 2023 16:21:56 +0000 (16:21 +0000)
This commit is solely about code shuffling.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h

index 822c7754fb7c991f078839800f46bf682f8381fc..679099a92724cf9688715f6924e0341682feb14f 100644 (file)
@@ -429,6 +429,22 @@ PG::do_delete_work(ceph::os::Transaction &t, ghobject_t _next)
   }
 }
 
+Context *PG::on_clean()
+{
+  // Not needed yet (will be needed for IO unblocking)
+  return nullptr;
+}
+
+void PG::on_active_actmap()
+{
+  // Not needed yet
+}
+
+void PG::on_active_advmap(const OSDMapRef &osdmap)
+{
+  // Not needed yet
+}
+
 void PG::scrub_requested(scrub_level_t scrub_level, scrub_type_t scrub_type)
 {
   // TODO: should update the stats upon finishing the scrub
index 992d0e8975494428dbc631b0269f71e24cc67980..dd013e8db74a4ebd608c6e7a11df315fd82ecd52 100644 (file)
@@ -332,10 +332,7 @@ public:
   void on_new_interval() final {
     // Not needed yet
   }
-  Context *on_clean() final {
-    // Not needed yet (will be needed for IO unblocking)
-    return nullptr;
-  }
+  Context *on_clean() final;
   void on_activate_committed() final {
     // Not needed yet (will be needed for IO unblocking)
   }
@@ -355,12 +352,8 @@ public:
   void set_ready_to_merge_target(eversion_t lu, epoch_t les, epoch_t lec) final {}
   void set_ready_to_merge_source(eversion_t lu) final {}
 
-  void on_active_actmap() final {
-    // Not needed yet
-  }
-  void on_active_advmap(const OSDMapRef &osdmap) final {
-    // Not needed yet
-  }
+  void on_active_actmap() final;
+  void on_active_advmap(const OSDMapRef &osdmap) final;
 
   epoch_t cluster_osdmap_trim_lower_bound() final {
     // TODO