From: Radoslaw Zarzynski Date: Wed, 23 Apr 2025 09:57:07 +0000 (+0000) Subject: fixup: crimson/osd: settle ECRecoveryBackend -- misc small bits of ECListener X-Git-Tag: v21.0.0~3^2~35 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f3738abdb31b76ccda2fced0b5c11158f8cc6bf6;p=ceph.git fixup: crimson/osd: settle ECRecoveryBackend -- misc small bits of ECListener Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/osd/ECListener.h b/src/osd/ECListener.h index b25c8c1c5c1a..ef5f48a00d5b 100644 --- a/src/osd/ECListener.h +++ b/src/osd/ECListener.h @@ -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> &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