From 5588176b12dec985a98ac8013ddc4c6f45170a4b Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Thu, 22 Sep 2016 23:11:09 +0800 Subject: [PATCH] msg/async: remove fd output in log prefix it's tricky to prevent fd racing in logs, otherwise we need to provide with lock to totally avoid this. But I don't think it deserve lock Signed-off-by: Haomai Wang --- src/msg/async/AsyncConnection.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index ae27252660e..9663f8eedb3 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -28,9 +28,8 @@ #undef dout_prefix #define dout_prefix _conn_prefix(_dout) ostream& AsyncConnection::_conn_prefix(std::ostream *_dout) { - int fd = (cs && state != STATE_CLOSED) ? cs.fd() : -1; return *_dout << "-- " << async_msgr->get_myinst().addr << " >> " << peer_addr << " conn(" << this - << " sd=" << fd << " :" << port + << " :" << port << " s=" << get_state_name(state) << " pgs=" << peer_global_seq << " cs=" << connect_seq -- 2.47.3