Merge pull request #17535 from emmericp/mon-session-show-client-features

mon: show feature flags when printing MonSession

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
This commit is contained in:
Sage Weil 2017-12-29 12:00:13 -06:00 committed by GitHub
commit 8ae7682037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,9 +223,10 @@ struct MonSessionMap {
inline ostream& operator<<(ostream& out, const MonSession& s)
{
out << "MonSession(" << s.inst << " is "
<< (s.closed ? "closed" : "open");
out << " " << s.caps << ")";
out << "MonSession(" << s.inst << " is " << (s.closed ? "closed" : "open")
<< " " << s.caps << ", features 0x" << std::hex << s.con_features << std::dec
<< " (" << ceph_release_name(ceph_release_from_features(s.con_features))
<< "))";
return out;
}