for (ceph::unordered_map<pg_t, pg_stat_t>::const_iterator i = pg_stat.begin();
i != pg_stat.end();
++i) {
-
if (! (i->second.state & PG_STATE_ACTIVE)) {
if (i->second.last_active < cutoff)
++inactive;
- } else if (! (i->second.state & PG_STATE_CLEAN)) {
+ }
+ if (! (i->second.state & PG_STATE_CLEAN)) {
if (i->second.last_clean < cutoff)
++unclean;
- } else if (i->second.state & PG_STATE_DEGRADED) {
+ }
+ if (i->second.state & PG_STATE_DEGRADED) {
if (i->second.last_undegraded < cutoff)
++degraded;
- } else if (i->second.state & PG_STATE_UNDERSIZED) {
+ }
+ if (i->second.state & PG_STATE_UNDERSIZED) {
if (i->second.last_fullsized < cutoff)
++undersized;
- } else if (i->second.state & PG_STATE_STALE) {
+ }
+ if (i->second.state & PG_STATE_STALE) {
if (i->second.last_unstale < cutoff)
++stale;
}