Following the change in on_applied(), should_requeue_blocked_ops() is no longer in use.
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
}
}
}
-
-bool PrimaryLogScrub::should_requeue_blocked_ops(eversion_t last_recovery_applied) const
-{
- if (!is_scrub_active()) {
- // just verify that things indeed are quiet
- ceph_assert(m_start == m_end);
- return false;
- }
-
- return last_recovery_applied >= m_subset_last_update;
-}
bool get_store_errors(const scrub_ls_arg_t& arg,
scrub_ls_result_t& res_inout) const final;
- /**
- * should we requeue blocked ops?
- * Yes - if our 'subset_last_applied' is less up-to-date than the
- * new recovery_state.get_last_update_applied().
- * (used by PrimaryLogPG::op_applied())
- */
- [[nodiscard]] bool should_requeue_blocked_ops(
- eversion_t last_recovery_applied) const final;
-
void stats_of_handled_objects(const object_stat_sum_t& delta_stats,
const hobject_t& soid) final;
/// handle a message carrying a replica map
void map_from_replica(OpRequestRef op) final;
- /**
- * should we requeue blocked ops?
- * Applicable to the PrimaryLogScrub derived class.
- */
- [[nodiscard]] virtual bool should_requeue_blocked_ops(
- eversion_t last_recovery_applied) const override
- {
- return false;
- }
-
void scrub_clear_state() final;
/**
virtual void add_callback(Context* context) = 0;
- /// should we requeue blocked ops?
- [[nodiscard]] virtual bool should_requeue_blocked_ops(
- eversion_t last_recovery_applied) const = 0;
-
/// add to scrub statistics, but only if the soid is below the scrub start
virtual void stats_of_handled_objects(const object_stat_sum_t& delta_stats,
const hobject_t& soid) = 0;