From: Sage Weil Date: Wed, 29 May 2013 20:16:01 +0000 (-0700) Subject: osd: tell peers that ping us if they are dead X-Git-Tag: v0.65~192^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aac828c2ecb90f46d37862d71092171c03bb16d3;p=ceph.git osd: tell peers that ping us if they are dead Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 26a601ed91a4..5c8457ac4751 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2417,6 +2417,13 @@ void OSD::handle_osd_ping(MOSDPing *m) _share_map_outgoing(from, con.get()); } } + } else if (curmap->get_down_at(from) > m->map_epoch) { + // tell them they have died + Message *r = new MOSDPing(monc->get_fsid(), + curmap->get_epoch(), + MOSDPing::YOU_DIED, + m->stamp); + m->get_connection()->get_messenger()->send_message(r, m->get_connection()); } } break;