From: Joao Eduardo Luis Date: Tue, 7 Oct 2014 23:13:49 +0000 (+0100) Subject: mon: PGMonitor: populate scrub timestamps with 'now' on pg creation X-Git-Tag: v0.87~29^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0dd3afd87e446f69e0caa71d0b4057f0a6b01ceb;p=ceph.git mon: PGMonitor: populate scrub timestamps with 'now' on pg creation Fixes: #9496 Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index adbd98360abb..d95288cbb30a 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -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 {