mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
osd/OpRequest: dump both name and addr for the client op
Signed-off-by: runsisi <runsisi@zte.com.cn>
This commit is contained in:
parent
075325c3a4
commit
9ede01affd
@ -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