Merge pull request #20313 from guzhongyan/fix-22350

osd/OSDMap: misleading message in print_oneline_summary()

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-02-06 14:01:41 -06:00 committed by GitHub
commit 03c8a828ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3412,9 +3412,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