summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-20 20:00:13 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-20 20:02:36 +0200
commit63198234437b77567c95ae15bace96d8305c3213 (patch)
tree4c50512ed65668ce38b5c134212357c16a102197
parentcf29d1766656f1158df127fb8a29b868d550eb82 (diff)
downloadceph-63198234437b77567c95ae15bace96d8305c3213.tar.gz
mon/PGMonitor.cc: reduce scope of local 'num_slow_osds' variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--src/mon/PGMonitor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc
index 1f11d5486cf..648a8fe2384 100644
--- a/src/mon/PGMonitor.cc
+++ b/src/mon/PGMonitor.cc
@@ -1794,8 +1794,8 @@ void PGMonitor::get_health(list<pair<health_status_t,string> >& summary,
ss << sum << " requests are blocked > " << g_conf->mon_osd_max_op_age << " sec";
summary.push_back(make_pair(HEALTH_WARN, ss.str()));
- unsigned num_slow_osds = 0;
if (detail) {
+ unsigned num_slow_osds = 0;
// do per-osd warnings
for (hash_map<int32_t,osd_stat_t>::const_iterator p = pg_map.osd_stat.begin();
p != pg_map.osd_stat.end();