]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: PGMonitor: populate scrub timestamps with 'now' on pg creation 2663/head
authorJoao Eduardo Luis <joao@redhat.com>
Tue, 7 Oct 2014 23:13:49 +0000 (00:13 +0100)
committerJoao Eduardo Luis <joao@redhat.com>
Tue, 7 Oct 2014 23:13:49 +0000 (00:13 +0100)
Fixes: #9496
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
src/mon/PGMonitor.cc

index adbd98360abb382f1b4e1c549dcd3b8f8506053a..d95288cbb30a1ba1606f9f8a3dd722c0b5034297 100644 (file)
@@ -983,6 +983,11 @@ void PGMonitor::register_pg(pg_pool_t& pool, pg_t pgid, epoch_t epoch, bool new_
   stats.parent = parent;
   stats.parent_split_bits = split_bits;
 
+  utime_t now = ceph_clock_now(g_ceph_context);
+  stats.last_scrub_stamp = now;
+  stats.last_deep_scrub_stamp = now;
+  stats.last_clean_scrub_stamp = now;
+
   if (split_bits == 0) {
     dout(10) << "register_new_pgs  will create " << pgid << dendl;
   } else {