From aac828c2ecb90f46d37862d71092171c03bb16d3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 29 May 2013 13:16:01 -0700 Subject: osd: tell peers that ping us if they are dead Signed-off-by: Sage Weil --- src/osd/OSD.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 26a601ed91a..5c8457ac475 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; -- cgit v1.2.1