From 6d34a28dc53e8c019c10b86c6832b475769d95de Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 24 Feb 2010 11:07:07 -0800 Subject: [PATCH] osd: print lost_at --- src/osd/OSDMap.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/osd/OSDMap.h b/src/osd/OSDMap.h index ea388a75d6005..c472f9051036a 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; } -- 2.39.5