]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not send peering messages during init
authorSage Weil <sage@inktank.com>
Sun, 5 Jan 2014 06:39:35 +0000 (22:39 -0800)
committerGreg Farnum <greg@inktank.com>
Fri, 31 Jan 2014 22:32:17 +0000 (14:32 -0800)
Do not send any peering messages while we are still working our way
through init().

Fixes: #7093
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 35da8f9d80e0c6c33fb6c6e00f0bf38f1eb87d0e)
Signed-off-by: Greg Farnum <greg@inktank.com>
src/osd/OSD.cc

index c847faad8bf4f82331f7254364eea1ef0675a81c..7bee1b6655da67450f67ac5e67cd6a6a8512e971 100644 (file)
@@ -5987,7 +5987,8 @@ bool OSD::compat_must_dispatch_immediately(PG *pg)
 
 void OSD::dispatch_context(PG::RecoveryCtx &ctx, PG *pg, OSDMapRef curmap)
 {
-  if (service.get_osdmap()->is_up(whoami)) {
+  if (service.get_osdmap()->is_up(whoami) &&
+      is_active()) {
     do_notifies(*ctx.notify_list, curmap);
     do_queries(*ctx.query_map, curmap);
     do_infos(*ctx.info_map, curmap);