]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: remove fd output in log prefix 11199/head
authorHaomai Wang <haomai@xsky.com>
Thu, 22 Sep 2016 15:11:09 +0000 (23:11 +0800)
committerHaomai Wang <haomai@xsky.com>
Thu, 22 Sep 2016 15:11:09 +0000 (23:11 +0800)
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 <haomai@xsky.com>
src/msg/async/AsyncConnection.cc

index ae27252660e9d6514548c6bcdc2ee3c49a38530d..9663f8eedb3ae703e40aaa44d0359854630cab44 100644 (file)
@@ -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