]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
fixup: crimson/osd: settle ECRecoveryBackend -- misc small bits of ECListener
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 23 Apr 2025 09:57:07 +0000 (09:57 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 27 Jan 2026 19:42:59 +0000 (19:42 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/osd/ECListener.h

index b25c8c1c5c1a668bf2b7fb408793843260b8472a..ef5f48a00d5b3a866f742ba13653ff0fc737c5ef 100644 (file)
@@ -40,7 +40,6 @@ struct ECListener {
   virtual void cancel_pull(
     const hobject_t &soid) = 0;
 
-#ifndef WITH_CRIMSON
   // XXX
   virtual pg_shard_t primary_shard() const = 0;
   virtual bool pgb_is_primary() const = 0;
@@ -54,16 +53,16 @@ struct ECListener {
     const eversion_t &v
     ) = 0;
 
-     /**
-      * Called with the transaction recovering oid
-      */
-     virtual void on_local_recover(
-       const hobject_t &oid,
-       const ObjectRecoveryInfo &recovery_info,
-       ObjectContextRef obc,
-       bool is_delete,
-       ceph::os::Transaction *t
-       ) = 0;
+  /**
+   * Called with the transaction recovering oid
+   */
+  virtual void on_local_recover(
+    const hobject_t &oid,
+    const ObjectRecoveryInfo &recovery_info,
+    ObjectContextRef obc,
+    bool is_delete,
+    ceph::os::Transaction *t
+    ) = 0;
 
   /**
    * Called when transaction recovering oid is durable and
@@ -96,21 +95,20 @@ struct ECListener {
     const std::map<std::string, ceph::buffer::list, std::less<>> &attrs) = 0;
 #endif
 
-     virtual bool check_failsafe_full() = 0;
-     virtual hobject_t get_temp_recovery_object(const hobject_t& target,
+  virtual bool check_failsafe_full() = 0;
+  virtual hobject_t get_temp_recovery_object(const hobject_t& target,
                                                eversion_t version) = 0;
+#ifndef WITH_CRIMSON
      virtual bool pg_is_remote_backfilling() = 0;
      virtual void pg_add_local_num_bytes(int64_t num_bytes) = 0;
      //virtual void pg_sub_local_num_bytes(int64_t num_bytes) = 0;
      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 inc_osd_stat_repaired() = 0;
    virtual void add_temp_obj(const hobject_t &oid) = 0;
    virtual void clear_temp_obj(const hobject_t &oid) = 0;
-#ifndef WITH_CRIMSON
    virtual epoch_t get_last_peering_reset_epoch() const = 0;
-#endif
 
   // XXX
 #ifndef WITH_CRIMSON