mirror of
https://github.com/ceph/ceph
synced 2024-12-18 09:25:49 +00:00
Merge pull request #12691 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:
commit
0260de99fe
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user