From: Sage Weil Date: Wed, 2 Jul 2014 16:13:09 +0000 (-0700) Subject: osd: track last_fullsized in pg_stat_t X-Git-Tag: v0.85~20^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5168907fe2d097e719c3f55bb6edd38fa83bbdc9;p=ceph.git osd: track last_fullsized in pg_stat_t Signed-off-by: Sage Weil --- 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();