Merge pull request #2064 from somnathr/wip-sd-share-map

OSD: adjust share_map() to handle the case that the osd is down

Reviewed-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2014-07-03 13:36:27 -07:00
commit f21a01791e

View File

@ -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);