]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: print lost_at
authorSage Weil <sage@newdream.net>
Wed, 24 Feb 2010 19:07:07 +0000 (11:07 -0800)
committerSage Weil <sage@newdream.net>
Thu, 25 Feb 2010 20:25:10 +0000 (12:25 -0800)
src/osd/OSDMap.h

index ea388a75d6005bad03cfe2a25dd1cc593882e9a6..c472f9051036a155ea5eb617f38ed402e6c8a29c 100644 (file)
@@ -112,10 +112,13 @@ struct osd_info_t {
 WRITE_CLASS_ENCODER(osd_info_t)
 
 inline ostream& operator<<(ostream& out, const osd_info_t& info) {
-  return out << "up_from " << info.up_from
-            << " up_thru " << info.up_thru
-            << " down_at " << info.down_at
-            << " last_clean_interval " << info.last_clean_first << "-" << info.last_clean_last;
+  out << "up_from " << info.up_from
+      << " up_thru " << info.up_thru
+      << " down_at " << info.down_at
+      << " last_clean_interval " << info.last_clean_first << "-" << info.last_clean_last;
+  if (info.lost_at)
+    out << " lost_at " << info.lost_at;
+  return out;
 }