]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: track last_fullsized in pg_stat_t
authorSage Weil <sage@redhat.com>
Wed, 2 Jul 2014 16:13:09 +0000 (09:13 -0700)
committerSage Weil <sage@redhat.com>
Sat, 16 Aug 2014 20:19:46 +0000 (13:19 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc

index 819a37b1267fcefe8053753a348819654d1ad1ae..dc10b797cd30d83168e3438be9dad248189bb839 100644 (file)
@@ -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();