From 0dd3afd87e446f69e0caa71d0b4057f0a6b01ceb Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Wed, 8 Oct 2014 00:13:49 +0100 Subject: [PATCH] mon: PGMonitor: populate scrub timestamps with 'now' on pg creation Fixes: #9496 Signed-off-by: Joao Eduardo Luis --- src/mon/PGMonitor.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index adbd98360abb3..d95288cbb30a1 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 { -- 2.39.5