]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: settle ECCommon::RecoveryBackend within crimson-osd
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 25 Mar 2024 14:31:55 +0000 (14:31 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 27 Jan 2026 14:37:36 +0000 (14:37 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/pg.h
src/osd/ECListener.h

index 2991cc7e837c1c48e7198da9cf37034433a1b383..d73aca0330501097373de429a92bf1c4c4b40cae 100644 (file)
@@ -178,6 +178,12 @@ public:
   DoutPrefixProvider *get_dpp() override {
     return this;
   }
+  void add_temp_obj(const hobject_t &oid) override {
+    get_backend().add_temp_obj(oid);
+  }
+  void clear_temp_obj(const hobject_t &oid) override {
+    get_backend().clear_temp_obj(oid);
+  }
   // ECListener ends
 
   const pg_shard_t& get_pg_whoami() const final {
index 765c1411015e35a9367489b110a05a833abcc591..b25c8c1c5c1a668bf2b7fb408793843260b8472a 100644 (file)
@@ -105,10 +105,11 @@ struct ECListener {
      virtual void pg_add_num_bytes(int64_t num_bytes) = 0;
      //virtual void pg_sub_num_bytes(int64_t num_bytes) = 0;
      virtual void inc_osd_stat_repaired() = 0;
-
+#endif
    virtual void add_temp_obj(const hobject_t &oid) = 0;
    virtual void clear_temp_obj(const hobject_t &oid) = 0;
-     virtual epoch_t get_last_peering_reset_epoch() const = 0;
+#ifndef WITH_CRIMSON
+   virtual epoch_t get_last_peering_reset_epoch() const = 0;
 #endif
 
   // XXX