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>
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())),