From: Radoslaw Zarzynski Date: Mon, 4 May 2020 21:01:57 +0000 (+0200) Subject: crimson/osd: PGRecovery provides dummy BackfillListener. X-Git-Tag: v16.1.0~1720^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48f4c5dd3bab2e486ad977e5c82bddf90cff7b81;p=ceph.git crimson/osd: PGRecovery provides dummy BackfillListener. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/osd/pg.h b/src/crimson/osd/pg.h index 9166f4cf0c4..0c8a7062009 100644 --- a/src/crimson/osd/pg.h +++ b/src/crimson/osd/pg.h @@ -349,6 +349,7 @@ public: void on_backfill_canceled() final { ceph_assert(0 == "Not implemented"); } + void on_recovery_reserved() final { recovery_handler->start_pglogbased_recovery(); } diff --git a/src/crimson/osd/pg_recovery.cc b/src/crimson/osd/pg_recovery.cc index bc6c56bd60b..1fd67a8de03 100644 --- a/src/crimson/osd/pg_recovery.cc +++ b/src/crimson/osd/pg_recovery.cc @@ -399,3 +399,49 @@ void PGRecovery::_committed_pushed_object(epoch_t epoch, __func__); } } + +void PGRecovery::request_replica_scan( + const pg_shard_t& target, + const hobject_t& begin, + const hobject_t& end) +{ + ceph_abort_msg("Not implemented"); +} + +void PGRecovery::request_primary_scan( + const hobject_t& begin) +{ + ceph_abort_msg("Not implemented"); +} + +void PGRecovery::enqueue_push( + const pg_shard_t& target, + const hobject_t& obj, + const eversion_t& v) +{ + ceph_abort_msg("Not implemented"); +} + +void PGRecovery::enqueue_drop( + const pg_shard_t& target, + const hobject_t& obj, + const eversion_t& v) +{ + ceph_abort_msg("Not implemented"); +} + +void PGRecovery::update_peers_last_backfill( + const hobject_t& new_last_backfill) +{ + ceph_abort_msg("Not implemented"); +} + +bool PGRecovery::budget_available() const +{ + ceph_abort_msg("Not implemented"); +} + +void PGRecovery::backfilled() +{ + ceph_abort_msg("Not implemented"); +} diff --git a/src/crimson/osd/pg_recovery.h b/src/crimson/osd/pg_recovery.h index 0ba8fda274c..afa64dc1e3e 100644 --- a/src/crimson/osd/pg_recovery.h +++ b/src/crimson/osd/pg_recovery.h @@ -5,6 +5,7 @@ #include +#include "crimson/osd/backfill_state.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/pg_recovery_listener.h" #include "crimson/osd/scheduler/scheduler.h" @@ -14,7 +15,7 @@ class PGBackend; -class PGRecovery { +class PGRecovery : public crimson::osd::BackfillState::BackfillListener { public: PGRecovery(PGRecoveryListener* pg) : pg(pg) {} virtual ~PGRecovery() {} @@ -74,4 +75,26 @@ private: Ref m); seastar::future<> handle_pull_response(Ref m); seastar::future<> handle_scan(MOSDPGScan& m); + + // backfill begin + void request_replica_scan( + const pg_shard_t& target, + const hobject_t& begin, + const hobject_t& end) final; + void request_primary_scan( + const hobject_t& begin) final; + void enqueue_push( + const pg_shard_t& target, + const hobject_t& obj, + const eversion_t& v) final; + void enqueue_drop( + const pg_shard_t& target, + const hobject_t& obj, + const eversion_t& v) final; + void update_peers_last_backfill( + const hobject_t& new_last_backfill) final; + bool budget_available() const final; + void backfilled() final; + friend crimson::osd::BackfillState::PGFacade; + // backfill end };