From 16d67c798b6f752a6e03084bafe861396b86baae Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 13 Jan 2013 20:27:59 -0800 Subject: [PATCH] osd/PG: remove useless osd_scrub_min_interval check This was already a no-op: we don't call PG::scrub_sched() unless it has been osd_scrub_max_interval seconds since we last scrubbed. Unless we explicitly requested in, in which case we don't want this check anyway. Signed-off-by: Sage Weil --- src/osd/PG.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 77b126e95ecdc..5608148d70199 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3014,12 +3014,6 @@ bool PG::sched_scrub() return false; } - // just scrubbed? - if (info.history.last_scrub_stamp + g_conf->osd_scrub_min_interval > ceph_clock_now(g_ceph_context)) { - dout(20) << "sched_scrub: just scrubbed, skipping" << dendl; - return false; - } - bool ret = true; if (!scrubber.reserved) { assert(scrubber.reserved_peers.empty()); -- 2.39.5