From 9ede01affdf59fc2fa239b3dac579aceca4a4f7b Mon Sep 17 00:00:00 2001 From: runsisi Date: Mon, 26 Dec 2016 10:31:21 +0800 Subject: [PATCH] osd/OpRequest: dump both name and addr for the client op Signed-off-by: runsisi --- src/osd/OpRequest.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osd/OpRequest.cc b/src/osd/OpRequest.cc index bf61de9fe3e..3c2c32ea140 100644 --- a/src/osd/OpRequest.cc +++ b/src/osd/OpRequest.cc @@ -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 }