]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix pg stat summary
authorSage Weil <sage@newdream.net>
Mon, 25 Apr 2011 23:27:38 +0000 (16:27 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Apr 2011 16:53:03 +0000 (09:53 -0700)
Had the pg state counts in there twice.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/PGMap.h

index 502fdc0299ca250d81df537d997b60eb04a47f22..fc8e3e26a3ec968f4a464511ff3ecf9cb2b70768 100644 (file)
@@ -389,10 +389,10 @@ public:
        << kb_t(osd_sum.kb_used) << " used, "
        << kb_t(osd_sum.kb_avail) << " / "
        << kb_t(osd_sum.kb) << " avail";
-    ss.clear();
-    recovery_summary(ss);
-    if (ss.str().length())
-      out << "; " << ss.str();
+    std::stringstream ssr;
+    recovery_summary(ssr);
+    if (ssr.str().length())
+      out << "; " << ssr.str();
   }
 
 };