From 25da46af896f4f0b8a778864cf7898b4caed7f3d Mon Sep 17 00:00:00 2001 From: Gu Zhongyan Date: Mon, 5 Feb 2018 18:45:54 +0800 Subject: [PATCH] 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 (cherry picked from commit 7004b35f71a657a0d9479b7cc46acc210de303d4) --- src/osd/OSDMap.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index ed2e36f37e1..d7aff21fbee 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -3502,9 +3502,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 -- 2.47.3