]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix heartbeats after bad markdown
authorSage Weil <sage@newdream.net>
Mon, 15 Aug 2011 23:06:22 +0000 (16:06 -0700)
committerSage Weil <sage@newdream.net>
Mon, 15 Aug 2011 23:33:57 +0000 (16:33 -0700)
commit77c780df54a8151195c34241c7858e0063d0edf4
tree75dbfac6df91379ded631ebf908a657769369d82
parent8c5e7dcf8cf7f3daa65eb9905a63014ed92c5505
osd: fix heartbeats after bad markdown

The heartbeat start message comes from hbin messenger, which has no port
and a nonce of the pid (at startup).  When we mark ourselves down/up, and
then resend a start, the peer will send a RESETSESSION and the stat
message will get lost, and then we'll miss heartbeats.

Mark down all connections, so that when we reconnect, our start message
is not lost.

Signed-off-by: Sage Weil <sage@newdream.net>
src/msg/Messenger.h
src/osd/OSD.cc