diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 05abee12596..363ba9c6e63 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4823,8 +4823,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);