1
0
mirror of https://github.com/ceph/ceph synced 2024-12-18 09:25:49 +00:00

Merge pull request from runsisi/wip-dump-osdop

osd/OpRequest: dump both name and addr for the client op

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-12-30 12:52:27 -06:00 committed by GitHub
commit 0260de99fe

View File

@ -52,9 +52,11 @@ void OpRequest::_dump(Formatter *f) const
f->dump_string("flag_point", state_string());
if (m->get_orig_source().is_client()) {
f->open_object_section("client_info");
stringstream client_name;
stringstream client_name, client_addr;
client_name << m->get_orig_source();
client_addr << m->get_orig_source_addr();
f->dump_string("client", client_name.str());
f->dump_string("client_addr", client_addr.str());
f->dump_unsigned("tid", m->get_tid());
f->close_section(); // client_info
}