]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: remove the unused should_requeue_blocked_ops() 42714/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 9 Aug 2021 10:10:52 +0000 (10:10 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 11 Aug 2021 13:48:21 +0000 (16:48 +0300)
Following the change in on_applied(), should_requeue_blocked_ops() is no longer in use.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/PrimaryLogScrub.cc
src/osd/PrimaryLogScrub.h
src/osd/pg_scrubber.h
src/osd/scrubber_common.h

index 3747cd698419999770e90b2ed8a59085bd39479a..e1302f0ef31a9694ff10de3ed8a320d82a91ca03 100644 (file)
@@ -585,14 +585,3 @@ void PrimaryLogScrub::stats_of_handled_objects(const object_stat_sum_t& delta_st
     }
   }
 }
-
-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;
-}
index 2cf0c71c300f797d5c5beb848c0485cb58412278..78353d6dbb6ff4fa2ac646eca1ee74818d0da9b5 100644 (file)
@@ -36,15 +36,6 @@ class PrimaryLogScrub : public PgScrubber {
   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;
 
index fdee52e6f353240312462f1363fc4d7ae4d6aa14..0ed1f6c9b540ceb5fb222b5663175759b285e7ce 100644 (file)
@@ -306,16 +306,6 @@ class PgScrubber : public ScrubPgIF, public ScrubMachineListener {
   /// 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;
 
   /**
index 22913875813ebc0a723ac99d6d832bb9d2dd18ea..538e4c0d32e0bd62857b70322aad5c2b2a1fce3a 100644 (file)
@@ -206,10 +206,6 @@ struct ScrubPgIF {
 
   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;