From: Sage Weil Date: Wed, 26 Apr 2017 22:10:31 +0000 (-0400) Subject: osd/PG: debug scrub range X-Git-Tag: v12.0.3~28^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7104a4e8daa173585b1e7c4f4b226d8bcf7d61f3;p=ceph.git osd/PG: debug scrub range Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 4ecc8fbbc9b6..53b5a2a14176 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4358,7 +4358,8 @@ void PG::chunky_scrub(ThreadPool::TPHandle &handle) int ret; while (!done) { - dout(20) << "scrub state " << Scrubber::state_string(scrubber.state) << dendl; + dout(20) << "scrub state " << Scrubber::state_string(scrubber.state) + << " [" << scrubber.start << "," << scrubber.end << ")" << dendl; switch (scrubber.state) { case PG::Scrubber::INACTIVE: @@ -4604,6 +4605,8 @@ void PG::chunky_scrub(ThreadPool::TPHandle &handle) ceph_abort(); } } + dout(20) << "scrub final state " << Scrubber::state_string(scrubber.state) + << " [" << scrubber.start << "," << scrubber.end << ")" << dendl; } void PG::scrub_clear_state() diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index df25ddf8b0d9..82472820167e 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -7294,7 +7294,12 @@ void PrimaryLogPG::apply_stats( if (is_primary() && scrubber.active) { if (soid < scrubber.start) { + dout(20) << __func__ << " " << soid << " < [" << scrubber.start + << "," << scrubber.end << ")" << dendl; scrub_cstat.add(delta_stats); + } else { + dout(20) << __func__ << " " << soid << " >= [" << scrubber.start + << "," << scrubber.end << ")" << dendl; } } }