From: Haomai Wang Date: Thu, 22 Sep 2016 15:11:09 +0000 (+0800) Subject: msg/async: remove fd output in log prefix X-Git-Tag: v11.0.1~125^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11199%2Fhead;p=ceph.git 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 --- 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