]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: pg_interval_t: include primaries in operator<< 1691/head
authorSage Weil <sage@inktank.com>
Sun, 20 Apr 2014 05:08:41 +0000 (22:08 -0700)
committerSage Weil <sage@inktank.com>
Tue, 22 Apr 2014 04:26:26 +0000 (21:26 -0700)
Also make up vs acting explicit.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/osd_types.cc

index d6d184edf0be8c5d21bdf859319fcdb48582e254..bb7cbd3e8fc1ed197d373a48a7217e08a4c8fdcd 100644 (file)
@@ -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 << ")";