From 5168907fe2d097e719c3f55bb6edd38fa83bbdc9 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 2 Jul 2014 09:13:09 -0700 Subject: [PATCH] osd: track last_fullsized in pg_stat_t Signed-off-by: Sage Weil --- src/osd/PG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 819a37b1267f..dc10b797cd30 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -2336,6 +2336,8 @@ void PG::publish_stats_to_osd() info.stats.last_unstale = now; if ((info.stats.state & PG_STATE_DEGRADED) == 0) info.stats.last_undegraded = now; + if ((info.stats.state & PG_STATE_UNDERSIZED) == 0) + info.stats.last_fullsized = now; _update_calc_stats(); _update_blocked_by(); -- 2.47.3