diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index d3b496f69a6..3b20540f53f 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4820,8 +4820,10 @@ void OSDService::share_map( << name << " " << con->get_peer_addr() << " " << epoch << dendl; - assert(osd->is_active() || - osd->is_stopping()); + if ((!osd->is_active()) && (!osd->is_stopping())) { + /*It is safe not to proceed as OSD is not in healthy state*/ + return; + } bool want_shared = should_share_map(name, con, epoch, osdmap, sent_epoch_p);