From e53f5721351a3e8e7cea7575a9c78c9182a95274 Mon Sep 17 00:00:00 2001 From: songbaisen Date: Mon, 27 Feb 2017 19:30:18 +0800 Subject: [PATCH] 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 --- src/osd/OSD.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 2ac89d559fb2..14b06ff8d313 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; } -- 2.47.3