]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: fix MSG_MGR_MAP handling 20892/head
authorGu Zhongyan <guzhongyan@360.cn>
Wed, 14 Mar 2018 07:08:05 +0000 (15:08 +0800)
committerGu Zhongyan <guzhongyan@360.cn>
Wed, 14 Mar 2018 07:08:05 +0000 (15:08 +0800)
ceph config show mgr.x doesn't work
root cause is mgr daemon's mgrc has no chance
to process MSG_MGR_MAP in the mgr daemon's
ms_dispatch.

fix is let this message pass through for mgrc

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
Signed-off-by: yupeng chen chenyupeng-it@360.cn
src/mgr/MgrStandby.cc

index 361201db8ff638c38c865989b8c8853fe098ce1b..5fe51db26db90b81440810ad3cb6a9aed883584f 100644 (file)
@@ -409,9 +409,9 @@ bool MgrStandby::ms_dispatch(Message *m)
     handled = am->ms_dispatch(m);
     lock.Lock();
   }
-  if (m->get_type() == MSG_MGR_MAP && !handled) {
-    m->put();
-    handled = true;
+  if (m->get_type() == MSG_MGR_MAP) {
+    // let this pass through for mgrc
+    handled = false;
   }
   return handled;
 }