]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: include past_intervals in pg debug printout
authorSage Weil <sage@newdream.net>
Fri, 27 Apr 2012 22:16:23 +0000 (15:16 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 28 Apr 2012 14:46:42 +0000 (07:46 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/PG.cc

index 2bba57d1b67684c42f13e55dc26f8a58eea2a4d7..549f0434402ffd47c4740105d6f6069b7f08eb44 100644 (file)
@@ -3665,6 +3665,11 @@ ostream& operator<<(ostream& out, const PG& pg)
   out << " r=" << pg.get_role();
   out << " lpr=" << pg.get_last_peering_reset();
 
+  if (pg.past_intervals.size()) {
+    out << " pi=" << pg.past_intervals.begin()->first << "-" << pg.past_intervals.rbegin()->second.last
+       << "/" << pg.past_intervals.size();
+  }
+
   if (pg.is_active() &&
       pg.last_update_ondisk != pg.info.last_update)
     out << " luod=" << pg.last_update_ondisk;