]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: don't initiate connect if we keepalive on unconnected peer
authorSage Weil <sage@newdream.net>
Tue, 17 Nov 2009 22:06:07 +0000 (14:06 -0800)
committerSage Weil <sage@newdream.net>
Wed, 18 Nov 2009 00:30:39 +0000 (16:30 -0800)
src/msg/SimpleMessenger.cc

index 88599a3172380ed1d09e0631e95fef3e0d387a11..6015e19247cc913b1dc9445716b20f036446a683 100644 (file)
@@ -2199,15 +2199,10 @@ void SimpleMessenger::send_keepalive(const entity_inst_t& dest)
          pipe->lock.Unlock();
        }
       }
-      if (!pipe) {
-       dout(20) << "send_keepalive remote, " << dest_addr << ", new pipe." << dendl;
-       // not connected.
-       pipe = connect_rank(dest_proc_addr, dest.name.type());
-       pipe->send_keepalive();
-      }
+      if (!pipe)
+       dout(20) << "send_keepalive no pipe for " << dest_addr << ", doing nothing." << dendl;
     }
   }
-
   lock.Unlock();
 }