mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
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:
commit
f21a01791e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user