]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap: misleading message in print_oneline_summary() 20313/head
authorGu Zhongyan <guzhongyan@360.cn>
Mon, 5 Feb 2018 10:45:54 +0000 (18:45 +0800)
committerGu Zhongyan <guzhongyan@360.cn>
Mon, 5 Feb 2018 10:53:24 +0000 (18:53 +0800)
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>
src/osd/OSDMap.cc

index 9798467cfdce83e2a30fab74f91cd9dcd57f3937..3ea639a92f6edd339953ee840966e82ec8e61957 100644 (file)
@@ -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