From 85f980223db811a8ab423354243725fa8f735f9f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 15 Mar 2018 08:32:14 -0500 Subject: [PATCH] osd: debug dispatch_context cases where queries not sent Signed-off-by: Sage Weil --- src/osd/OSD.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 2babb4e289af..6d514e5c4487 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -8316,8 +8316,11 @@ void OSD::dispatch_context_transaction(PG::RecoveryCtx &ctx, PG *pg, void OSD::dispatch_context(PG::RecoveryCtx &ctx, PG *pg, OSDMapRef curmap, ThreadPool::TPHandle *handle) { - if (service.get_osdmap()->is_up(whoami) && - is_active()) { + if (!service.get_osdmap()->is_up(whoami)) { + dout(20) << __func__ << " not up in osdmap" << dendl; + } else if (!is_active()) { + dout(20) << __func__ << " not active" << dendl; + } else { do_notifies(*ctx.notify_list, curmap); do_queries(*ctx.query_map, curmap); do_infos(*ctx.info_map, curmap); -- 2.47.3