]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap: misleading message in print_oneline_summary()
authorGu Zhongyan <guzhongyan@360.cn>
Mon, 5 Feb 2018 10:45:54 +0000 (18:45 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 14 Oct 2019 12:43:54 +0000 (14:43 +0200)
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 <guzhongyan@360.cn>
(cherry picked from commit 7004b35f71a657a0d9479b7cc46acc210de303d4)

src/osd/OSDMap.cc

index ed2e36f37e1783c1f2505f978756952fd96e93d7..d7aff21fbeeb0946487619910daab3738ff8e931 100644 (file)
@@ -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