From: Sage Weil Date: Sun, 20 Apr 2014 05:08:41 +0000 (-0700) Subject: osd/osd_types: pg_interval_t: include primaries in operator<< X-Git-Tag: v0.80-rc1~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1691%2Fhead;p=ceph.git osd/osd_types: pg_interval_t: include primaries in operator<< Also make up vs acting explicit. Signed-off-by: Sage Weil --- diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index d6d184edf0b..bb7cbd3e8fc 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -2260,7 +2260,9 @@ bool pg_interval_t::check_new_interval( ostream& operator<<(ostream& out, const pg_interval_t& i) { - out << "interval(" << i.first << "-" << i.last << " " << i.up << "/" << i.acting; + out << "interval(" << i.first << "-" << i.last + << " up " << i.up << "(" << i.up_primary << ")" + << " acting " << i.acting << "(" << i.primary << ")"; if (i.maybe_went_rw) out << " maybe_went_rw"; out << ")";