]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: debug dispatch_context cases where queries not sent 20917/head
authorSage Weil <sage@redhat.com>
Thu, 15 Mar 2018 13:32:14 +0000 (08:32 -0500)
committerSage Weil <sage@redhat.com>
Thu, 15 Mar 2018 13:32:14 +0000 (08:32 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc

index 2babb4e289af48fcaf09c25601b7aafdf0360488..6d514e5c44874003052c8acfc652af9d57680632 100644 (file)
@@ -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);