From: Sage Weil Date: Sun, 5 Jan 2014 06:39:35 +0000 (-0800) Subject: osd: do not send peering messages during init X-Git-Tag: v0.75~6^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=35da8f9d80e0c6c33fb6c6e00f0bf38f1eb87d0e;p=ceph.git osd: do not send peering messages during init Do not send any peering messages while we are still working our way through init(). Fixes: #7093 Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 9a22e9124da..9622020d9b0 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -6062,7 +6062,8 @@ bool OSD::compat_must_dispatch_immediately(PG *pg) void OSD::dispatch_context(PG::RecoveryCtx &ctx, PG *pg, OSDMapRef curmap, ThreadPool::TPHandle *handle) { - 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);