]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: the osd should not share map with others when it is in stopping state.
authorsongbaisen <song.baisen@zte.com.cn>
Mon, 27 Feb 2017 11:30:18 +0000 (19:30 +0800)
committersongbaisen <song.baisen@zte.com.cn>
Mon, 27 Feb 2017 11:38:37 +0000 (19:38 +0800)
     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 <song.baisen@zte.com.cn>
src/osd/OSD.cc

index 2ac89d559fb2d51de444c0a95319a881ffc64945..14b06ff8d31369716c254b22cb0dd50b37ba4731 100644 (file)
@@ -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;
   }