From: Gu Zhongyan Date: Mon, 5 Feb 2018 10:45:54 +0000 (+0800) Subject: osd/OSDMap: misleading message in print_oneline_summary() X-Git-Tag: v13.0.2~335^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7004b35f71a657a0d9479b7cc46acc210de303d4;p=ceph.git osd/OSDMap: misleading message in print_oneline_summary() The output scared people as showing so many osds were full/nearfull Improve the output to make the message clearer Fixes: http://tracker.ceph.com/issues/22350 Signed-off-by: Gu Zhongyan --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 9798467cfdce..3ea639a92f6e 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -3410,9 +3410,9 @@ void OSDMap::print_oneline_summary(ostream& out) const << get_num_up_osds() << " up, " << get_num_in_osds() << " in"; if (test_flag(CEPH_OSDMAP_FULL)) - out << " full"; + out << "; full flag set"; else if (test_flag(CEPH_OSDMAP_NEARFULL)) - out << " nearfull"; + out << "; nearfull flag set"; } bool OSDMap::crush_rule_in_use(int rule_id) const