Skip to content

Commit 77dda5e

Browse files
committed
osd: Remove OSDService::get_scrub_cost()
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 <[email protected]>
1 parent 5532f6a commit 77dda5e

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/osd/OSD.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,17 +1798,6 @@ void OSDService::queue_scrub_event_msg_default_cost(PG* pg,
17981798
queue_scrub_event_msg<MSG_TYPE>(pg, with_priority, cost);
17991799
}
18001800

1801-
int64_t OSDService::get_scrub_cost()
1802-
{
1803-
1804-
int64_t cost_for_queue = cct->_conf->osd_scrub_cost;
1805-
if (op_queue_type_t::mClockScheduler == osd->osd_op_queue_type()) {
1806-
cost_for_queue = cct->_conf->osd_scrub_event_cost *
1807-
cct->_conf->osd_shallow_scrub_chunk_max;
1808-
}
1809-
return cost_for_queue;
1810-
}
1811-
18121801
void OSDService::queue_for_scrub(PG* pg, Scrub::scrub_prio_t with_priority)
18131802
{
18141803
queue_scrub_event_msg_default_cost<PGScrub>(pg, with_priority);

src/osd/OSD.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,6 @@ class OSDService : public Scrub::ScrubSchedListener {
600600
Scrub::scrub_prio_t with_priority,
601601
unsigned int qu_priority,
602602
Scrub::act_token_t act_token);
603-
int64_t get_scrub_cost();
604-
605603
utime_t defer_recovery_until;
606604
uint64_t recovery_ops_active;
607605
uint64_t recovery_ops_reserved;

0 commit comments

Comments
 (0)