From: Sage Weil Date: Tue, 1 Jul 2014 00:18:05 +0000 (-0700) Subject: osd: track last_undegraded pg stat X-Git-Tag: v0.85~20^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dbc3f650461d722c35630c5fd4c72e395f9814ec;p=ceph.git osd: track last_undegraded pg stat Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 59e2be8e81e9..819a37b1267f 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -2334,6 +2334,8 @@ void PG::publish_stats_to_osd() if (info.stats.state & PG_STATE_ACTIVE) info.stats.last_active = now; info.stats.last_unstale = now; + if ((info.stats.state & PG_STATE_DEGRADED) == 0) + info.stats.last_undegraded = now; _update_calc_stats(); _update_blocked_by();