From: songbaisen Date: Mon, 27 Feb 2017 11:30:18 +0000 (+0800) Subject: osd: the osd should not share map with others when it is in stopping state. X-Git-Tag: v12.0.1~218^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e53f5721351a3e8e7cea7575a9c78c9182a95274;p=ceph.git osd: the osd should not share map with others when it is in stopping state. the osd may not share its map with others when the osd is in stopping state. because it may from unhealthy to stopping. Signed-off-by: song baisen --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 2ac89d559fb..14b06ff8d31 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -1000,7 +1000,7 @@ void OSDService::share_map( << name << " " << con->get_peer_addr() << " " << epoch << dendl; - if ((!osd->is_active()) && (!osd->is_stopping())) { + if (!osd->is_active()) { /*It is safe not to proceed as OSD is not in healthy state*/ return; }