]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: fix operator<< and init debug
authorSage Weil <sage@redhat.com>
Tue, 11 Apr 2017 19:20:49 +0000 (15:20 -0400)
committerSage Weil <sage@redhat.com>
Fri, 28 Apr 2017 15:30:39 +0000 (11:30 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc

index 313272f071e96bd32d795418ddbfbf101d27cad3..6496f45e910157c7200e60a9bae6d275513a0a32 100644 (file)
@@ -2711,7 +2711,7 @@ void PG::init(
 {
   dout(10) << "init role " << role << " up " << newup << " acting " << newacting
           << " history " << history
-          << " " << pi.size() << " past_intervals"
+          << " past_intervals " << pi
           << dendl;
 
   set_role(role);
@@ -5321,8 +5321,8 @@ ostream& operator<<(ostream& out, const PG& pg)
   out << " lpr=" << pg.get_last_peering_reset();
 
   if (!pg.past_intervals.empty()) {
-    out << " pi=" << pg.past_intervals.get_bounds()
-       << "/" << pg.past_intervals.size();
+    out << " pi=[" << pg.past_intervals.get_bounds()
+       << ")/" << pg.past_intervals.size();
   }
 
   if (pg.is_peered()) {