]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: create client messenger using ms_public_type 39750/head
authorluo.runbing <luo.runbing@zte.com.cn>
Mon, 1 Mar 2021 01:00:13 +0000 (09:00 +0800)
committerluo.runbing <luo.runbing@zte.com.cn>
Mon, 1 Mar 2021 06:06:28 +0000 (14:06 +0800)
and fallback to ms_type if ms_public_type is not configured

otherwise rdma support breaks with ms_public_type set to async+rdma explicitly
and left ms_type & ms_cluster_type to their defaults.

Signed-off-by: luo.runbing <luo.runbing@zte.com.cn>
src/mgr/MgrStandby.cc

index 585837802f501f6dbe7e97831c0a5d38b7983e88..37a2219bccbde21e8a20b747d031fbced409f9ed 100644 (file)
@@ -41,7 +41,8 @@ MgrStandby::MgrStandby(int argc, const char **argv) :
   monc{g_ceph_context, poolctx},
   client_messenger(Messenger::create(
                     g_ceph_context,
-                    cct->_conf.get_val<std::string>("ms_type"),
+                    cct->_conf.get_val<std::string>("ms_public_type").empty() ?
+                       cct->_conf.get_val<std::string>("ms_type") : cct->_conf.get_val<std::string>("ms_public_type"),
                     entity_name_t::MGR(),
                     "mgr",
                     Messenger::get_pid_nonce())),