diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2012-01-27 13:27:27 -0800 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-01-27 13:27:27 -0800 |
commit | 56d164c8fb8ec37e63754b0efcc0dca483f4e096 (patch) | |
tree | ca52d0a8042d944c197220fc2fdc891ea5f3e7ef | |
parent | 61c54a799ec7f539fd4634cb01f8141c763847fd (diff) | |
download | ceph-56d164c8fb8ec37e63754b0efcc0dca483f4e096.tar.gz |
mon: stale pgs -> HEALTH_WARN
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
-rw-r--r-- | src/mon/PGMonitor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 178467d0936..624f935363f 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1117,6 +1117,8 @@ enum health_status_t PGMonitor::get_health(std::ostream &ss) const hash_map<int,int>::const_iterator p = pg_map.num_pg_by_state.begin(); hash_map<int,int>::const_iterator p_end = pg_map.num_pg_by_state.end(); for (; p != p_end; ++p) { + if (p->first & PG_STATE_STALE) + note["stale"] += p->second; if (p->first & PG_STATE_DOWN) note["down"] += p->second; if (p->first & PG_STATE_DEGRADED) |