]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: in sched_scrub() set PG_STATE_DEEP_SCRUB not scrubber.deep
authorSamuel Just <sam.just@inktank.com>
Fri, 21 Dec 2012 19:17:23 +0000 (11:17 -0800)
committerSage Weil <sage@inktank.com>
Fri, 21 Dec 2012 19:29:47 +0000 (11:29 -0800)
scrubber.deep gets reset in scrub() to match
state_test(PG_STATE_DEEP_SCRUB).

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index c5566a1bf41511a60e5ca682630abff4721fe927..a88887fbcdbdb6c686c42ca4920a237748c2a40f 100644 (file)
@@ -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;