From: Sage Weil Date: Mon, 25 Apr 2011 23:27:38 +0000 (-0700) Subject: mon: fix pg stat summary X-Git-Tag: v0.28~139^2~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=08265b1d74b522dcaa7fc544d3b51cdcc7ee51f2;p=ceph.git mon: fix pg stat summary Had the pg state counts in there twice. Signed-off-by: Sage Weil --- diff --git a/src/mon/PGMap.h b/src/mon/PGMap.h index 502fdc0299ca..fc8e3e26a3ec 100644 --- a/src/mon/PGMap.h +++ b/src/mon/PGMap.h @@ -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(); } };