]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Remove OSDService::get_scrub_cost() 58001/head
authorAishwarya Mathuria <amathuri@redhat.com>
Mon, 18 Mar 2024 07:53:00 +0000 (07:53 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Thu, 13 Jun 2024 03:38:19 +0000 (09:08 +0530)
After the addition of PgScrubber::get_scrub_cost(), this method will no longer be in use and can be removed.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
(cherry picked from commit 77dda5ef03979bbaa6c9c8d9bae60d5b1769f6a8)

src/osd/OSD.cc
src/osd/OSD.h

index a1218f956b7dc6dc275a041ecbab3af2a5495e51..9b7ee6ad1a4cad5f8a8d7b5e2fab2f1a7c8d8a55 100644 (file)
@@ -1798,17 +1798,6 @@ void OSDService::queue_scrub_event_msg_default_cost(PG* pg,
   queue_scrub_event_msg<MSG_TYPE>(pg, with_priority, cost);
 }
 
-int64_t OSDService::get_scrub_cost()
-{
-
-  int64_t cost_for_queue = cct->_conf->osd_scrub_cost;
-  if (op_queue_type_t::mClockScheduler == osd->osd_op_queue_type()) {
-    cost_for_queue = cct->_conf->osd_scrub_event_cost *
-                     cct->_conf->osd_shallow_scrub_chunk_max;
-  }
-  return cost_for_queue;
-}
-
 void OSDService::queue_for_scrub(PG* pg, Scrub::scrub_prio_t with_priority)
 {
   queue_scrub_event_msg_default_cost<PGScrub>(pg, with_priority);
index 88e5cdb943a8ec1df8a18139360045fcef983646..1e28ffc8e9a3ec4126b68fb268b07443162b0e79 100644 (file)
@@ -600,8 +600,6 @@ private:
                                          Scrub::scrub_prio_t with_priority,
                                          unsigned int qu_priority,
                                          Scrub::act_token_t act_token);
-  int64_t get_scrub_cost();
-
   utime_t defer_recovery_until;
   uint64_t recovery_ops_active;
   uint64_t recovery_ops_reserved;