]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor.cc: reduce scope of local 'num_slow_osds' variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 20 Jul 2013 18:00:13 +0000 (20:00 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 20 Jul 2013 18:02:36 +0000 (20:02 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/PGMonitor.cc

index 1f11d5486cf2ff79898dd7716b0660932fa1a108..648a8fe2384664ac98a1cd493151705a22c11ef9 100644 (file)
@@ -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();