From: Sage Weil Date: Tue, 11 Apr 2017 19:20:49 +0000 (-0400) Subject: osd/PG: fix operator<< and init debug X-Git-Tag: v12.0.3~129^2~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=59a92aeee0c7becf4184cfbbf33d36877a66a2aa;p=ceph.git osd/PG: fix operator<< and init debug Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 313272f071e9..6496f45e9101 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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()) {