]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix hb con failure handler
authorSage Weil <sage@inktank.com>
Wed, 29 May 2013 03:39:30 +0000 (20:39 -0700)
committerSage Weil <sage@inktank.com>
Wed, 29 May 2013 03:39:30 +0000 (20:39 -0700)
commit45b84f39ba6c0e0b7cbbeef386105a0a8fe3a14b
tree62b4d5fd2f5e461758ab4853e4a6f659e1b1bc67
parentb528a915f666796e4259feb929457cafb9f4ea33
osd: fix hb con failure handler

Fix a few bugs introduced by 27381c0c6259ac89f5f9c592b4bfb585937a1cfc:

- check against both front and back cons; either one may have failed.
- close *both* front and back before reopening either.  this is
  overkill, but slightly simpler code.
- fix leak of con when marking down
- handle race against osdmap update and note_down_osd

Fixes: #5172
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc