]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: off-by-one when check deep scrubbing 6196/head
authorGuang Yang <yguang@yahoo-inc.com>
Fri, 16 Oct 2015 15:52:45 +0000 (15:52 +0000)
committerGuang Yang <yguang@yahoo-inc.com>
Fri, 16 Oct 2015 20:29:49 +0000 (20:29 +0000)
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
src/osd/PG.cc

index b72d231730550c649d279a0b4e00fad75f1e3c3e..c6e2d38260fd993780fd7e22f64bb0dc285b265e 100644 (file)
@@ -3163,7 +3163,7 @@ bool PG::sched_scrub()
     return false;
   }
 
-  bool time_for_deep = (ceph_clock_now(cct) >
+  bool time_for_deep = (ceph_clock_now(cct) >=
     info.history.last_deep_scrub_stamp + cct->_conf->osd_deep_scrub_interval);
 
   //NODEEP_SCRUB so ignore time initiated deep-scrub