From 670afc6c0c7f2bcfd00658c66ccedd8c967bfe96 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 21 Dec 2012 11:17:23 -0800 Subject: [PATCH] PG: in sched_scrub() set PG_STATE_DEEP_SCRUB not scrubber.deep scrubber.deep gets reset in scrub() to match state_test(PG_STATE_DEEP_SCRUB). Signed-off-by: Samuel Just --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index c5566a1bf4151..a88887fbcdbdb 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3013,7 +3013,7 @@ bool PG::sched_scrub() if (ceph_clock_now(g_ceph_context) > info.history.last_deep_scrub_stamp + g_conf->osd_deep_scrub_interval) { dout(10) << "sched_scrub: scrub will be deep" << dendl; - scrubber.deep = true; + state_set(PG_STATE_DEEP_SCRUB); } bool ret = false; -- 2.39.5