osd/scrub: scheduler: removing unused code

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
This commit is contained in:
Ronen Friedman 2023-09-21 04:59:11 -05:00
parent 27e151414b
commit 631899a971
2 changed files with 1 additions and 23 deletions

View File

@ -114,7 +114,7 @@ void OsdScrub::initiate_scrub(bool is_recovery_active)
if (g_conf()->subsys.should_gather<ceph_subsys_osd, 20>()) {
dout(20) << "scrub scheduling (@tick) starts" << dendl;
auto all_jobs = list_registered_jobs();
auto all_jobs = m_queue.list_registered_jobs();
for (const auto& sj : all_jobs) {
dout(20) << fmt::format("\tscrub-queue jobs: {}", *sj) << dendl;
}
@ -503,13 +503,3 @@ void OsdScrub::clear_reserving_now()
{
m_queue.clear_reserving_now();
}
bool OsdScrub::is_reserving_now() const
{
return m_queue.is_reserving_now();
}
Scrub::ScrubQContainer OsdScrub::list_registered_jobs() const
{
return m_queue.list_registered_jobs();
}

View File

@ -204,18 +204,6 @@ class OsdScrub {
/// the queue of PGs waiting to be scrubbed
ScrubQueue m_queue;
public:
// for this transitory commit only - to be moved elsewhere
/**
* @return the list (not std::set!) of all scrub jobs registered
* (apart from PGs in the process of being removed)
*/
Scrub::ScrubQContainer list_registered_jobs() const;
/// one of this OSD's PGs is trying to acquire replica resources
bool is_reserving_now() const;
private:
const std::string m_log_prefix{};
/// number of PGs stuck while scrubbing, waiting for objects