From: David Zafman Date: Thu, 15 Nov 2018 07:56:51 +0000 (-0800) Subject: osd: Prioritize user specified scrubs X-Git-Tag: v14.1.0~877^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5f1a7ef029b0c4b59bc73fd709bdc096970a36ce;p=ceph.git osd: Prioritize user specified scrubs Fixes: http://tracker.ceph.com/issues/37269 Signed-off-by: David Zafman --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 69f1d38ed681..c75d41abbf29 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4301,8 +4301,11 @@ void PG::reg_next_scrub() utime_t reg_stamp; bool must = false; - if (scrubber.must_scrub || - (info.stats.stats_invalid && cct->_conf->osd_scrub_invalid_stats)) { + if (scrubber.must_scrub) { + // Set the smallest time that isn't utime_t() + reg_stamp = utime_t(0,1); + must = true; + } else if (info.stats.stats_invalid && cct->_conf->osd_scrub_invalid_stats) { reg_stamp = ceph_clock_now(); must = true; } else {