From: Sage Weil Date: Wed, 24 Feb 2010 19:07:07 +0000 (-0800) Subject: osd: print lost_at X-Git-Tag: v0.20~405 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6d34a28dc53e8c019c10b86c6832b475769d95de;p=ceph.git osd: print lost_at --- diff --git a/src/osd/OSDMap.h b/src/osd/OSDMap.h index ea388a75d600..c472f9051036 100644 --- a/src/osd/OSDMap.h +++ b/src/osd/OSDMap.h @@ -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; }